patch date filter

This commit is contained in:
Maidul Islam
2024-06-14 20:57:10 -04:00
parent a332019c25
commit ae177343d5
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
actorAuthMethod: req.permission.authMethod,
projectId: req.params.workspaceId,
...req.query,
startDate: req.query.endDate || getLastMidnightDateISO(),
endDate: req.query.endDate,
startDate: req.query.startDate || getLastMidnightDateISO(),
auditLogActor: req.query.actor,
actor: req.permission.type
});