Browse Source

refactor(nocodb): updateObj.notification

pull/5168/head
Wing-Kam Wong 2 years ago
parent
commit
b7a4b4c5aa
  1. 6
      packages/nocodb/src/lib/models/Hook.ts

6
packages/nocodb/src/lib/models/Hook.ts

@ -218,10 +218,8 @@ export default class Hook implements HookType {
| 'update'; | 'update';
} }
if (updateObj.notification) { if (updateObj.notification && typeof updateObj.notification === 'object') {
updateObj.notification && typeof updateObj.notification === 'object' uupdateObj.notification = JSON.stringify(updateObj.notification);
? JSON.stringify(updateObj.notification)
: updateObj.notification;
} }
// get existing cache // get existing cache

Loading…
Cancel
Save