Skip to content

Commit

Permalink
beforeSave custom object id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mstniy committed Feb 6, 2021
1 parent 4b6e9ff commit c926c51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export function getResponseObject(request, resolve, reject) {
response = {};
if (request.triggerName === Types.beforeSave) {
response['object'] = request.object._getSaveJSON();
response['object']['objectId'] = request.object.id;
}
return resolve(response);
},
Expand Down

0 comments on commit c926c51

Please sign in to comment.