@punks/backend-entity-manager 0.0.280 → 0.0.282

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/dist/cjs/index.js CHANGED
@@ -33840,7 +33840,9 @@ const JOB_PROVIDER = Symbol.for("WP.JOB_PROVIDER");
33840
33840
 
33841
33841
  var JobsProviderFactory_1;
33842
33842
  let JobsProviderFactory = JobsProviderFactory_1 = class JobsProviderFactory {
33843
- constructor(discover) {
33843
+ constructor(
33844
+ // @Inject(getEntityManagerProviderToken("DiscoveryService"))
33845
+ discover) {
33844
33846
  this.discover = discover;
33845
33847
  this.logger = backendCore.Log.getLogger(JobsProviderFactory_1.name);
33846
33848
  }
@@ -33861,8 +33863,7 @@ let JobsProviderFactory = JobsProviderFactory_1 = class JobsProviderFactory {
33861
33863
  };
33862
33864
  JobsProviderFactory = JobsProviderFactory_1 = __decorate([
33863
33865
  common.Injectable(),
33864
- __param(0, common.Inject(getEntityManagerProviderToken("DiscoveryService"))),
33865
- __metadata("design:paramtypes", [Object])
33866
+ __metadata("design:paramtypes", [exports.CustomDiscoveryService])
33866
33867
  ], JobsProviderFactory);
33867
33868
 
33868
33869
  let JobProviderExecutor = class JobProviderExecutor {
@@ -33908,7 +33909,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
33908
33909
  await this.instances.appendInstance(job, {
33909
33910
  id: instanceId,
33910
33911
  runType,
33911
- scheduleUid: schedule.uid,
33912
+ scheduleUid: schedule?.uid,
33912
33913
  insertTime: new Date(),
33913
33914
  });
33914
33915
  await this.executor.dispatch({
@@ -40085,7 +40086,7 @@ let AwsJobsProvider = class AwsJobsProvider {
40085
40086
  }
40086
40087
  async dispatch(input) {
40087
40088
  const { definition, schedule, instanceId } = input;
40088
- const awsInvocationParams = schedule.invocationOverrides;
40089
+ const awsInvocationParams = schedule?.invocationOverrides;
40089
40090
  await this.awsBatchService.submitJob({
40090
40091
  instanceId,
40091
40092
  jobUid: definition.uid,