mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: made audit logs more searchable with better filters
This commit is contained in:
@@ -146,12 +146,16 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
|||||||
actorId: req.permission.id,
|
actorId: req.permission.id,
|
||||||
actorOrgId: req.permission.orgId,
|
actorOrgId: req.permission.orgId,
|
||||||
actorAuthMethod: req.permission.authMethod,
|
actorAuthMethod: req.permission.authMethod,
|
||||||
projectId: req.params.workspaceId,
|
actor: req.permission.type,
|
||||||
...req.query,
|
|
||||||
endDate: req.query.endDate,
|
filter: {
|
||||||
startDate: req.query.startDate || getLastMidnightDateISO(),
|
...req.query,
|
||||||
auditLogActor: req.query.actor,
|
projectId: req.params.workspaceId,
|
||||||
actor: req.permission.type
|
endDate: req.query.endDate,
|
||||||
|
startDate: req.query.startDate || getLastMidnightDateISO(),
|
||||||
|
auditLogActorId: req.query.actor,
|
||||||
|
eventType: req.query.eventType ? [req.query.eventType] : undefined
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return { auditLogs };
|
return { auditLogs };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user