Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88dd6b1

Browse files
eKulshankoskimas
authored andcommitted
fix typo
1 parent c8d3452 commit 88dd6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/guide/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Person extends Model {
145145
static async beforeDelete({ asFindQuery }) {
146146
// This query will automatically be executed in the same transaction
147147
// as the query we are hooking into.
148-
await idsOfItemsToBeDeleted = await asFindQuery().select('id');
148+
const idsOfItemsToBeDeleted = await asFindQuery().select('id');
149149
await doSomethingWithIds(idsOfItemsToBeDeleted);
150150
}
151151
}

0 commit comments

Comments
 (0)