part ok
This commit is contained in:
@@ -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',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user