@autofleet/sequelize-utils 5.1.8 → 5.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,6 @@ const addModelEventHooks = async (sequelize, modelTableMapping) => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
sequelize.addHook('afterSave', async (savedObject, options) => {
|
|
26
|
-
logger_1.default.info('dimTables after save start', { savedObject });
|
|
27
26
|
if (options.transaction) {
|
|
28
27
|
options.transaction.afterCommit(() => updateEventToDimTable(savedObject));
|
|
29
28
|
}
|
|
@@ -32,7 +31,6 @@ const addModelEventHooks = async (sequelize, modelTableMapping) => {
|
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
sequelize.addHook('afterDestroy', async (savedObject, options) => {
|
|
35
|
-
logger_1.default.info('dimTables after save start', { savedObject });
|
|
36
34
|
if (options.transaction) {
|
|
37
35
|
options.transaction.afterCommit(() => updateEventToDimTable(savedObject, true));
|
|
38
36
|
}
|
package/package.json
CHANGED
package/src/model-event-hooks.ts
CHANGED
|
@@ -31,7 +31,6 @@ const addModelEventHooks = async (sequelize: Sequelize, modelTableMapping: Model
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
sequelize.addHook('afterSave', async (savedObject, options) => {
|
|
34
|
-
logger.info('dimTables after save start', { savedObject });
|
|
35
34
|
if (options.transaction) {
|
|
36
35
|
options.transaction.afterCommit(() => updateEventToDimTable(savedObject));
|
|
37
36
|
} else {
|
|
@@ -39,7 +38,6 @@ const addModelEventHooks = async (sequelize: Sequelize, modelTableMapping: Model
|
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
sequelize.addHook('afterDestroy', async (savedObject, options) => {
|
|
42
|
-
logger.info('dimTables after save start', { savedObject });
|
|
43
41
|
if (options.transaction) {
|
|
44
42
|
options.transaction.afterCommit(() => updateEventToDimTable(savedObject, true));
|
|
45
43
|
} else {
|