This commit is contained in:
2026-09-20 04:14:32 +01:00
parent cda6cff34f
commit d5536b49d9
42 changed files with 1544 additions and 143 deletions
@@ -43,15 +43,16 @@ export default async function runClientSetup({
let host: BUN_SQLITE_WGUI_HOSTS | undefined;
if (client?.host_id) {
const host_res = await BunSQLite.select<BUN_SQLITE_WGUI_HOSTS, TableType>(
{
table: "hosts",
targetId: client.host_id,
},
);
const host_res = await BunSQLite.select<
BUN_SQLITE_WGUI_HOSTS,
TableType
>({
table: "hosts",
targetId: client.host_id,
});
host = host_res.singleRes || undefined;
}
return await setupWireguardClient({ client, host, user });
}
}