Skip to content

Commit

Permalink
fix: ✏️ delete callHook
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgbn committed Apr 5, 2023
1 parent fb99c96 commit b09e0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/helpers/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default class Model extends Hookable {

const { deletedCount } = await this.collection.deleteOne({ _id })

await this.callHook('archive:done', { id, deletedCount })
await this.callHook('delete:done', { id, deletedCount })
return { deletedCount }
}
}

0 comments on commit b09e0bc

Please sign in to comment.