Skip to content

Commit

Permalink
fix: cleanup orphan changes in the staging table
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius authored and MariusDec committed Mar 3, 2022
1 parent d420035 commit 14d8861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/staging/staging.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Staging extends Model {
if (record.commited === 1) {
const { uuid, table, action, data } = record;
const diff = Staging.getDiffObject(uuid, table, action, data);
return diff.original === null;
return diff.original == null;
}
return false;
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/model-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { columnsToInclude } from './helpers.js';
import Sequelize from 'sequelize/types/index.js';
import Sequelize from 'sequelize';

export function formatModelAssociationName(model) {
if (model == null || model.model == null) return '';
Expand Down

0 comments on commit 14d8861

Please sign in to comment.