Skip to content

Commit

Permalink
fix _deleted key being overwritten on update
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Aug 26, 2024
1 parent f6e8650 commit 8d80814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/teraslice/src/lib/cluster/services/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class JobsService {
}

return this.jobsStorage.update(jobId, Object.assign({}, jobSpec, {
_created: originalJob._created
_created: originalJob._created,
_deleted: originalJob._deleted
}));
}

Expand Down
3 changes: 1 addition & 2 deletions packages/teraslice/src/lib/storage/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export class JobsStorage {
{
job_id: jobId,
_context: this.jobType,
_updated: makeISODate(),
_deleted: false
_updated: makeISODate()
}
));

Expand Down

0 comments on commit 8d80814

Please sign in to comment.