@punks/backend-entity-manager 0.0.311 → 0.0.312
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 +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/extensions/jobs/commands/job-dispatch/command.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/jobs/services/jobs-service/types.d.ts +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/extensions/jobs/commands/job-dispatch/command.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/jobs/services/jobs-service/types.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -33878,6 +33878,7 @@ exports.JobsService = class JobsService {
|
|
|
33878
33878
|
schedule,
|
|
33879
33879
|
runType: exports.JobRunType.OnDemand,
|
|
33880
33880
|
payload: input.payload,
|
|
33881
|
+
commandPlaceholders: input.commandPlaceholders,
|
|
33881
33882
|
}));
|
|
33882
33883
|
};
|
|
33883
33884
|
this.updateJob = async (input) => {
|
|
@@ -33978,7 +33979,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
|
|
|
33978
33979
|
return result.result;
|
|
33979
33980
|
}
|
|
33980
33981
|
async dispatchJob(command) {
|
|
33981
|
-
const { input: { job, schedule, runType, payload }, } = command;
|
|
33982
|
+
const { input: { job, schedule, runType, payload, commandPlaceholders }, } = command;
|
|
33982
33983
|
const instanceId = backendCore.newUuid();
|
|
33983
33984
|
try {
|
|
33984
33985
|
this.logger.info(`JOB DISPATCH -> dispatching started job ${job.uid} -> ${instanceId}`);
|
|
@@ -33993,6 +33994,7 @@ let JobDispatchHandler = JobDispatchHandler_1 = class JobDispatchHandler {
|
|
|
33993
33994
|
schedule,
|
|
33994
33995
|
instanceId,
|
|
33995
33996
|
payload,
|
|
33997
|
+
commandPlaceholders,
|
|
33996
33998
|
});
|
|
33997
33999
|
await this.instances.updateInstance(instanceId, {
|
|
33998
34000
|
status: exports.JobStatus.Ready,
|