This commit is contained in:
Emily
2025-02-11 14:27:35 +01:00
parent 346eecc928
commit a7ebbc22c0
3 changed files with 4 additions and 2 deletions

View File

@@ -52,10 +52,10 @@ async function processStreamEntry(data: Record<string, string>) {
const { pid, sessionHash } = data;
const project = await ProjectModel.exists({ _id: pid });
if (!project) return console.log('No project');
if (!project) return;
const canLog = await checkLimits(pid);
if (!canLog) return console.log('No limits');
if (!canLog) return;
if (eventType === 'event') {
await process_event(data, sessionHash);