failSafeUpdate

Function

Update a model's item, wrapped in a failSafe so this will not blow up if the user lacks rights somehow. This should be used in places where there is a high-probability that the current user CAN update the item.

  • failSafeUpdate(model: IModel, requestOptions: IUserRequestOptions) : Promise<any>

Parameters

Parameter Type Default Notes
model Required IModel

Model object to be updated

requestOptions Required IUserRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<any>

Function defined in packages/common/src/items/fail-safe-update.ts:14