@punks/backend-entity-manager 0.0.290 → 0.0.291

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
@@ -33957,10 +33957,11 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
33957
33957
  }
33958
33958
  async execute(command) {
33959
33959
  const { input: { job }, } = command;
33960
- await this.lock.executeExclusive({
33960
+ const result = await this.lock.executeExclusive({
33961
33961
  lockUid: `job-dispatch-${job.uid}`,
33962
33962
  operation: async () => await this.dispatchJob(command),
33963
33963
  });
33964
+ return result.result;
33964
33965
  }
33965
33966
  async dispatchJob(command) {
33966
33967
  const { input: { job, schedule, runType, payload }, } = command;