@chevre/domain 22.11.0-alpha.26 → 22.11.0-alpha.27

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.
@@ -130,7 +130,7 @@ export declare class TaskRepo {
130
130
  $lt: Date;
131
131
  };
132
132
  sort: {
133
- runsAt: factory.sortType;
133
+ runsAt?: factory.sortType;
134
134
  };
135
135
  }, next?: INextFunction): Promise<Pick<factory.task.ITask<factory.taskName>, 'id' | 'name'> | null>;
136
136
  /**
@@ -486,8 +486,9 @@ class TaskRepo {
486
486
  remainingNumberOfTries: -1, // 残りトライ可能回数減らす
487
487
  numberOfTried: 1 // トライ回数増やす
488
488
  }
489
- }, { new: true, projection })
490
- .sort(params.sort)
489
+ }, Object.assign({ new: true, projection }, (typeof params.sort.runsAt === 'number')
490
+ ? { sort: params.sort }
491
+ : undefined))
491
492
  .setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
492
493
  .lean()
493
494
  .exec();
package/package.json CHANGED
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "22.11.0-alpha.26"
118
+ "version": "22.11.0-alpha.27"
119
119
  }