exodus-framework 2.0.899 → 2.0.900

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.
@@ -1,2 +1,3 @@
1
1
  export * from './queue';
2
+ export * from './schedule';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
@@ -13,4 +13,15 @@ Object.keys(_queue).forEach(function (key) {
13
13
  return _queue[key];
14
14
  }
15
15
  });
16
+ });
17
+ var _schedule = require("./schedule");
18
+ Object.keys(_schedule).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _schedule[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _schedule[key];
25
+ }
26
+ });
16
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../src/tasks/schedule/restart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAM,0BAA2B,SAAQ,YAAY;IACtC,UAAU;IAOjB,eAAe;CAItB;AAED,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../src/tasks/schedule/restart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAM,0BAA2B,SAAQ,YAAY;IACtC,UAAU;IAOjB,eAAe;CAItB;AAED,eAAe,0BAA0B,CAAC"}
@@ -4,13 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _contansts = require("../../contracts/contansts");
8
7
  var _services = require("../../services");
9
8
  class ServiceRestartTaskSchedule extends _services.ScheduleTask {
10
9
  async onTaskInit() {
11
10
  await super.onTaskInit();
12
11
  this.name = 'Tarefa de Agendamento do Restart';
13
- this.cron = _contansts.eScheduleTaskInterval.DEFAULT;
12
+ this.cron = '0 0 0 * * * ';
14
13
  }
15
14
  async onMasterExecute() {
16
15
  this.log('Executando reinício agendado...', 'danger');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.899",
3
+ "version": "2.0.900",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",