Skip to content

Commit

Permalink
Fix missing attributes from change objects
Browse files Browse the repository at this point in the history
  • Loading branch information
vkWeb committed Sep 12, 2023
1 parent 7814874 commit 28c16e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const commonFields = ['type', 'key', 'table', 'rev', 'channel_id', 'user_id'];
const ChangeTypeMapFields = {
[CHANGE_TYPES.CREATED]: commonFields.concat(['obj']),
[CHANGE_TYPES.UPDATED]: commonFields.concat(['mods']),
[CHANGE_TYPES.DELETED]: commonFields,
[CHANGE_TYPES.MOVED]: commonFields.concat(['target', 'position']),
[CHANGE_TYPES.DELETED]: commonFields.concat(['oldObj']),
[CHANGE_TYPES.MOVED]: commonFields.concat(['target', 'position', 'oldObj', 'parent']),
[CHANGE_TYPES.COPIED]: commonFields.concat([
'from_key',
'mods',
Expand Down

0 comments on commit 28c16e9

Please sign in to comment.