start on repond to message (basic input and builder for dm)

This commit is contained in:
grimhilt
2023-04-14 18:37:33 +02:00
parent 5b62fce48a
commit 7ad22e55c1
14 changed files with 2389 additions and 61 deletions

12
back/db/Room-db.ts Normal file
View File

@@ -0,0 +1,12 @@
import { execQueryAsync } from "./db";
export async function getRoomOwner(roomId: number) {
const query = `
SELECT address.email
FROM app_room
INNER JOIN address ON address.address_id = app_room.owner_id
WHERE app_room.room_id = ?
`;
const values = [roomId];
return await execQueryAsync(query, values);
}