Skip to main content

AfterEditSaveFunction()

AfterEditSaveFunction: (params) => Promise<object>

Parameters

ParameterTypeDescription
paramsobject-
params.adminUserAdminUserAdmin user performing the action.
params.adminforthIAdminForthAdminforth instance.
params.extra?HttpExtraExtra HTTP information. Prefer using extra.response over the top-level response field.
params.oldRecordanyRecord data before update.
params.recordany

Record after update.

@deprecated. Will be removed in 2.0.0. Use updates instead.

params.recordIdanyPrimary key value of the record to delete.
params.resourceAdminForthResourceResource info.
params.responseIAdminForthHttpResponse

HTTP response object.

Deprecated

Since 1.2.9. Will be removed in 2.0.0. Use extra.response instead.

params.updatesanyRecord updates.

Returns

Promise<object>

error?

optional error: string

ok

ok: boolean