start on repond to message (basic input and builder for dm)
This commit is contained in:
12
back/db/Room-db.ts
Normal file
12
back/db/Room-db.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user