Updates
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user