This commit is contained in:
m
2026-09-10 06:39:25 +02:00
parent 7dd29239b7
commit 85b1871c18
18 changed files with 783 additions and 147 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { getDatabase } from './client';
import { getSession } from './session';
export async function newResourceId(): Promise<string> {
const db = await getDatabase();
const db = await getSession();
const row = await db.getFirstAsync<{ id: string }>(
'SELECT lower(hex(randomblob(16))) AS id',
);