mythix-orm-sql-base 1.6.1 → 1.6.3
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.
|
@@ -315,7 +315,7 @@ class SQLConnectionBase extends ConnectionBase {
|
|
|
315
315
|
Object.assign({}, _options || {}, { skipPersisted: true, isInsertOperation: true }),
|
|
316
316
|
// Before model operation handler
|
|
317
317
|
async (Model, models, options) => {
|
|
318
|
-
await this.runSaveHooks(Model, models, 'onBeforeCreate', 'onBeforeSave',
|
|
318
|
+
await this.runSaveHooks(Model, models, 'onBeforeCreate', 'onBeforeSave', options);
|
|
319
319
|
},
|
|
320
320
|
// Operation handler
|
|
321
321
|
async (Model, preparedModels, options, queryGenerator) => {
|
|
@@ -326,7 +326,7 @@ class SQLConnectionBase extends ConnectionBase {
|
|
|
326
326
|
},
|
|
327
327
|
// After model operation handler
|
|
328
328
|
async (Model, models, options) => {
|
|
329
|
-
await this.runSaveHooks(Model, models, 'onAfterCreate', 'onAfterSave',
|
|
329
|
+
await this.runSaveHooks(Model, models, 'onAfterCreate', 'onAfterSave', options);
|
|
330
330
|
},
|
|
331
331
|
// After all operations handler
|
|
332
332
|
async (PrimaryModel, dirtyModels, options, queryGenerator) => {
|
|
@@ -359,7 +359,7 @@ class SQLConnectionBase extends ConnectionBase {
|
|
|
359
359
|
Object.assign({}, options || {}, { isUpdateOperation: true }),
|
|
360
360
|
// Before model operation handler
|
|
361
361
|
async (Model, models, options) => {
|
|
362
|
-
await this.runSaveHooks(Model, models, 'onBeforeUpdate', 'onBeforeSave',
|
|
362
|
+
await this.runSaveHooks(Model, models, 'onBeforeUpdate', 'onBeforeSave', options);
|
|
363
363
|
},
|
|
364
364
|
// Operation handler
|
|
365
365
|
async (Model, preparedModels, options, queryGenerator) => {
|
|
@@ -384,7 +384,7 @@ class SQLConnectionBase extends ConnectionBase {
|
|
|
384
384
|
},
|
|
385
385
|
// After model operation handler
|
|
386
386
|
async (Model, models, options) => {
|
|
387
|
-
await this.runSaveHooks(Model, models, 'onAfterUpdate', 'onAfterSave',
|
|
387
|
+
await this.runSaveHooks(Model, models, 'onAfterUpdate', 'onAfterSave', options);
|
|
388
388
|
},
|
|
389
389
|
);
|
|
390
390
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mythix-orm-sql-base",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "SQL base support for Mythix ORM",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/th317erd/mythix-orm-sql-base#readme",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"mythix-orm": "^1.7.
|
|
36
|
+
"mythix-orm": "^1.7.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"luxon": "^3.0.4",
|