From 49cfc1089010ec07eb6af6eeedf36d90d56b97c2 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 30 Sep 2025 02:01:39 +0000 Subject: [PATCH] Prettier format pending files --- client/lib/aethex-database-adapter.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 64421a65..4fdc0ebc 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -856,10 +856,13 @@ export const aethexRoleService = { // Ensure roles exist and fetch their ids const wanted = Array.from(new Set(roles.map((r) => r.toLowerCase()))); // Insert missing roles - await supabase.from("roles").upsert( - wanted.map((name) => ({ name } as any)) as any, - { onConflict: "name" } as any, - ).catch(() => undefined); + await supabase + .from("roles") + .upsert( + wanted.map((name) => ({ name }) as any) as any, + { onConflict: "name" } as any, + ) + .catch(() => undefined); // Fetch role ids const { data: roleRows } = await supabase .from("roles") @@ -870,9 +873,12 @@ export const aethexRoleService = { role_id: r.id, })); if (idRows.length) { - await supabase.from("user_roles").upsert(idRows as any, { - onConflict: "user_id,role_id" as any, - } as any); + await supabase.from("user_roles").upsert( + idRows as any, + { + onConflict: "user_id,role_id" as any, + } as any, + ); return; } } catch {}