Skip to content

Commit

Permalink
Don't stringify audit logs (#93)
Browse files Browse the repository at this point in the history
Don't stringify audit logs as they are already stringified.
  • Loading branch information
forty authored Mar 28, 2023
2 parents d787a26 + 25cf9a8 commit 6b90f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/endpoints/getAuditLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface GetTeamMembersParams {
}

export const getAuditLogs = (params: GetTeamMembersParams) => {
return requestUserApi<GetAuditLogsOutput[]>({
return requestUserApi<GetAuditLogsOutput>({
path: 'teams/GetAuditLogs',
login: params.secrets.login,
deviceKeys: {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/getAuditLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export const getAuditLogs = async (params: GetTeamMembersParams) => {
limit,
});

console.log(JSON.stringify(response));
response.auditLogs.forEach((log) => console.log(log));
};

0 comments on commit 6b90f4d

Please sign in to comment.