fix: improve overview filters

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-02-18 10:43:55 +01:00
parent 1281cfa7b3
commit d7e6e737c9
9 changed files with 215 additions and 100 deletions

View File

@@ -351,6 +351,6 @@ export const eventRouter = createTRPCRouter({
)} AND origin IS NOT NULL AND origin != '' AND toDate(created_at) > now() - INTERVAL 30 DAY GROUP BY origin ORDER BY count DESC LIMIT 3`,
);
return res;
return res.filter((item) => item.origin && !item.origin.includes('localhost:'));
}),
});