@resolveio/server-lib 3.2.1-newrole → 3.2.2-newrole

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.
@@ -138,7 +138,12 @@ var CronManager = /** @class */ (function () {
138
138
  CronManager.prototype.runCronJob = function (cron) {
139
139
  var _this = this;
140
140
  var now = new Date();
141
- if (!cron.next_run || now.getTime() >= cron.next_run.getTime()) {
141
+ var cronRunTime = null;
142
+ if (cron.next_run) {
143
+ cronRunTime = cron.next_run;
144
+ cronRunTime.setSeconds(0, 0);
145
+ }
146
+ if (!cron.next_run || now.getTime() >= cronRunTime.getTime()) {
142
147
  cron_job_collection_1.CronJobs.findOneAndUpdate({
143
148
  $and: [
144
149
  { _id: cron._id },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "3.2.1-newrole",
3
+ "version": "3.2.2-newrole",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {