Skip to content

Commit

Permalink
add back actor id to backlog events
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Dec 6, 2024
1 parent 49d1392 commit 1fec647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/query/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ const _deleteHeldSubmissionByEventId = (eventId) => ({ run }) => run(sql`
WHERE "auditId"=${eventId}`);

const logBacklogEvent = (action, event, submissionId, submissionDefId) => ({ Audits }) =>
Audits.log(null, `submission.backlog.${action}`, { acteeId: event.acteeId }, { submissionId, submissionDefId });
Audits.log({ id: event.actorId }, `submission.backlog.${action}`, { acteeId: event.acteeId }, { submissionId, submissionDefId });

////////////////////////////////////////////////////////////////////////////////
// FORCE PROCESSING SUBMISSIONS FROM BACKLOG
Expand Down
2 changes: 2 additions & 0 deletions test/integration/api/offline-entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,8 @@ describe('Offline Entities', () => {
'submission.backlog.hold',
'submission.create'
]);
// actor for update should be the same as submission create actor
body[0].actorId.should.equal(body[3].actorId);
});
}));
});
Expand Down

0 comments on commit 1fec647

Please sign in to comment.