Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/audit-logs/queries/find-audit-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const findAuditLogs = {
const org = await loadOrgByKey.load(orgId)

// Check to see if user belongs to org
const permission = await checkPermission({ orgId: org._id })
const permission = await checkPermission({ orgId: org?._id })
if (permission === 'admin' || permission === 'super_admin') {
const auditLogCollection = await loadAuditLogsByOrgId({
...args,
Expand Down