Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d3452 commit 88dd6b1Copy full SHA for 88dd6b1
doc/guide/hooks.md
@@ -145,7 +145,7 @@ class Person extends Model {
145
static async beforeDelete({ asFindQuery }) {
146
// This query will automatically be executed in the same transaction
147
// as the query we are hooking into.
148
- await idsOfItemsToBeDeleted = await asFindQuery().select('id');
+ const idsOfItemsToBeDeleted = await asFindQuery().select('id');
149
await doSomethingWithIds(idsOfItemsToBeDeleted);
150
}
151
0 commit comments