feat(server): fixed if projectid is missing

This commit is contained in:
Akhil Mohan
2024-05-03 00:23:59 +05:30
parent 8485fdc1cd
commit fa18ca41ac
@@ -71,7 +71,7 @@ export const auditLogQueueServiceFactory = ({
userAgentType userAgentType
}); });
const logStreams = await auditLogStreamDAL.find({ projectId }); const logStreams = projectId ? await auditLogStreamDAL.find({ projectId }) : [];
await Promise.allSettled( await Promise.allSettled(
logStreams.map( logStreams.map(
async ({ url, encryptedTokenTag, encryptedTokenIV, encryptedTokenKeyEncoding, encryptedTokenCiphertext }) => { async ({ url, encryptedTokenTag, encryptedTokenIV, encryptedTokenKeyEncoding, encryptedTokenCiphertext }) => {