Skip to content

Commit

Permalink
fix: add missing params in afterWrite hook
Browse files Browse the repository at this point in the history
  • Loading branch information
annabel-dev committed Jan 23, 2024
1 parent 9cfa496 commit d128a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mongoose/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export type Handler<Context = unknown, ModelSchema = unknown> = {
args: PreArgs<Context, ModelSchema> & DocumentPreArgs<Context, ModelSchema>
) => unknown | Promise<unknown>;
afterWrite: (
args: AfterArgs<Context, ModelSchema> & DocumentPostArgs & AfterRawResultArgs<Context>
args: AfterArgs<Context, ModelSchema> & DocumentPostArgs<Context, ModelSchema> & AfterRawResultArgs<Context, ModelSchema>
) => unknown | Promise<unknown>;

beforeDelete: (
Expand Down

0 comments on commit d128a1c

Please sign in to comment.