style: auto-fix lint and format
This commit is contained in:
1 parent
05e7d8c529
commit
cf655b8c8e
4 files changed
+17
-5
No files matched your search
@@ -371,7 +371,9 @@ export const onboardRouter = createTRPCRouter({
|
||||
if (input.length === 0) return;
|
||||
|
||||
const existingApps = await ctx.db.query.apps.findMany({ columns: { href: true } });
|
||||
const existingHrefs = new Set(existingApps.map((app) => app.href).filter((href): href is string => Boolean(href)));
|
||||
const existingHrefs = new Set(
|
||||
existingApps.map((app) => app.href).filter((href): href is string => Boolean(href)),
|
||||
);
|
||||
const appsToCreate = input.filter((app) => !app.href || !existingHrefs.has(app.href));
|
||||
if (appsToCreate.length === 0) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user