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 963c66a commit a91c6acCopy full SHA for a91c6ac
adminforth/documentation/docs/tutorial/03-Customization/04-hooks.md
@@ -96,9 +96,9 @@ import type { AdminUser } from 'adminforth';
96
//diff-add
97
create: {
98
99
- beforeSave: async ({ adminUser, updates }: { adminUser: AdminUser, updates: any }) => {
+ beforeSave: async ({ adminUser, record }: { adminUser: AdminUser, record: any }) => {
100
101
- updates.realtor_id = adminUser.dbUser.id;
+ record.realtor_id = adminUser.dbUser.id;
102
103
return { ok: true };
104
0 commit comments