Skip to content

Commit

Permalink
Change userID to userId to align with other service lines (#4280)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille authored Sep 16, 2024
1 parent 13e6671 commit b219537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/auditLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ const getQueueURL = async () => {
};

export const logEvent = async (
userID: string,
userId: string,
subject: { type: keyof typeof AuditSubjectType; id?: string },
event: AuditLogEventStrings,
description?: string
): Promise<void> => {
const auditLog = JSON.stringify({
userID,
userId,
event,
timestamp: Date.now(),
subject,
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/auditLog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe("Audit Log Tests", () => {
expect(mockedSQSClient.prototype.send).toBeCalledTimes(1);
expect(mockedSendMessageCommand).toBeCalledWith({
MessageBody: JSON.stringify({
userID: "1",
userId: "1",
event: "UserSignIn",
timestamp: currentTimeStamp,
subject: { type: "User", id: "1" },
Expand Down

0 comments on commit b219537

Please sign in to comment.