exodus-framework 2.1.1039 → 2.1.1041
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.
package/lib/services/database.js
CHANGED
@@ -261,6 +261,7 @@ class DatabaseService extends _app.Service {
|
|
261
261
|
}),
|
262
262
|
logger: console
|
263
263
|
});
|
264
|
+
await umzung.up();
|
264
265
|
if (downgrades.length > 0) {
|
265
266
|
this.log(`⚠️ Downgrade migrations: ${downgrades.join(', ')}`, 'warning');
|
266
267
|
try {
|
@@ -271,7 +272,6 @@ class DatabaseService extends _app.Service {
|
|
271
272
|
this.log(`⚠️ Error downgrading migrations: ${error.message}`, 'warning');
|
272
273
|
}
|
273
274
|
}
|
274
|
-
await umzung.up();
|
275
275
|
}
|
276
276
|
|
277
277
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueueService.d.ts","sourceRoot":"","sources":["../../../../src/services/task/queue/QueueService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,cAAM,gBAAiB,SAAQ,eAAe,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACnE,OAAO,CAAC,UAAU,CAAoB;
|
1
|
+
{"version":3,"file":"QueueService.d.ts","sourceRoot":"","sources":["../../../../src/services/task/queue/QueueService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,cAAM,gBAAiB,SAAQ,eAAe,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC;IACnE,OAAO,CAAC,UAAU,CAAoB;IAEzB,OAAO;IAiBP,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IAwBpC,kBAAkB;CAG1B;AAED,eAAe,gBAAgB,CAAC"}
|
@@ -21,9 +21,9 @@ class SchedulerTaskService extends _TaskServiceBase.default {
|
|
21
21
|
await task.taskInit();
|
22
22
|
if (!task.getActive()) return;
|
23
23
|
if (task.getSide() === _core.eExecutionSide.ANY || task.getSide() === _core.eExecutionSide.CLUSTER && this.isCluster() || task.getSide() === _core.eExecutionSide.MASTER && this.isMaster()) {
|
24
|
-
if (task.isImmediate()) task.execute();
|
25
24
|
const job = (0, _nodeSchedule.scheduleJob)(task.getCronTask(), task.execute.bind(task));
|
26
25
|
task.setJob(job);
|
26
|
+
if (task.isImmediate()) task.execute();
|
27
27
|
}
|
28
28
|
this.log(`Job '${task.getName()}' started...`, 'warning');
|
29
29
|
}
|