Skip to content

Commit

Permalink
Merge pull request #4278 from vkWeb/undefined_is_now_defined
Browse files Browse the repository at this point in the history
Fix missing attributes from change objects
  • Loading branch information
rtibbles authored Sep 13, 2023
2 parents 7814874 + 28c16e9 commit 3fa10e3
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 3fa10e3

Please sign in to comment.