Skip to content

Commit

Permalink
Missing updated at field in update job
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Oct 23, 2019
1 parent 76675b8 commit 5d0f7a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opencti-platform/opencti-graphql/src/domain/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export const updateJob = async (jobId, status, messages) => {
const job = await getAttributes(WORK_INDEX, jobId);
const updatedJob = pipe(
assoc('job_status', status),
assoc('messages', messages)
assoc('messages', messages),
assoc('updated_at', now())
)(job);
await index(WORK_INDEX, updatedJob);
return updatedJob;
Expand Down

0 comments on commit 5d0f7a3

Please sign in to comment.