Skip to content

Commit

Permalink
Fix #18 - Display session activity log when username contains capital…
Browse files Browse the repository at this point in the history
… letters
  • Loading branch information
tawoyinfa committed Jul 3, 2023
1 parent d69af5c commit c64694c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amplify/backend/function/teamgetLogs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const start_query = async (event) => {
const role = event["role"]["S"];
try {
const input = {
QueryStatement: `SELECT eventID, eventName, eventSource, eventTime FROM ${EventDataStore} WHERE eventTime > '${startTime}' AND eventTime < '${endTime}' AND useridentity.principalId LIKE '%:${username}%' AND useridentity.sessionContext.sessionIssuer.arn LIKE '%${role}%' AND recipientAccountId='${accountId}'`,
QueryStatement: `SELECT eventID, eventName, eventSource, eventTime FROM ${EventDataStore} WHERE eventTime > '${startTime}' AND eventTime < '${endTime}' AND lower(useridentity.principalId) LIKE '%:${username}%' AND useridentity.sessionContext.sessionIssuer.arn LIKE '%${role}%' AND recipientAccountId='${accountId}'`,
};
const command = new StartQueryCommand(input);
const response = await client.send(command);
Expand Down

0 comments on commit c64694c

Please sign in to comment.