feat(server): fixed if projectid is missing

This commit is contained in:
Akhil Mohan
2024-04-23 20:56:52 +05:30
parent 8485fdc1cd
commit fa18ca41ac

View File

@@ -71,7 +71,7 @@ export const auditLogQueueServiceFactory = ({
userAgentType
});
const logStreams = await auditLogStreamDAL.find({ projectId });
const logStreams = projectId ? await auditLogStreamDAL.find({ projectId }) : [];
await Promise.allSettled(
logStreams.map(
async ({ url, encryptedTokenTag, encryptedTokenIV, encryptedTokenKeyEncoding, encryptedTokenCiphertext }) => {