1import type { GamesDB } from '../gamesDbF.d.ts'2import type { Kysely } from 'kysely'4export const lookupGameroomId = async ({gameRoom, db}: {gameRoom: string, db: Kysely<GamesDB>}): Promise<string | null> => {5 const row = await db.selectFrom('gamerooms')6 .where('room_label', '=', gameRoom)7 .select('id')8 .executeTakeFirst()9 return row?.id ?? null10}