AfterSaveFunction()
AfterSaveFunction: (
params
) =>Promise
<object
>
Modify record to change how data is saved to database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
Parameters
Parameter | Type |
---|---|
params | object |
params.adminUser | AdminUser |
params.adminforth | IAdminForth |
params.oldRecord ? | any |
params.record | any |
params.recordId | any |
params.resource | AdminForthResource |
Returns
Promise
<object
>
error?
optional
error:string
ok
ok:
boolean