Skip to content

Commit

Permalink
fix: staging table diff
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Mar 13, 2022
1 parent c054b0f commit 4703b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/staging/staging.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Staging extends Model {
});
}

diff.original = original;
diff.original = _.omit(original, 'createdAt', 'updatedAt');
diff.change = JSON.parse(data);
}

Expand Down Expand Up @@ -115,7 +115,7 @@ class Staging extends Model {
});
}

diff.original = original;
diff.original = _.omit(original, 'createdAt', 'updatedAt');
diff.change = {};
}

Expand Down

0 comments on commit 4703b4d

Please sign in to comment.