change archi and use schema routes

This commit is contained in:
grimhilt
2023-04-08 00:00:24 +02:00
parent 65db4d8b7e
commit 5b6995d6a6
14 changed files with 137 additions and 46 deletions

View File

@@ -36,7 +36,6 @@ export async function createRoom(
return await execQueryAsyncWithId(query, values);
}
// todo date not good
export async function registerMessageInRoom(messageId: number, roomId: number, idate: string | undefined | null) {
if (!idate) idate = new Date().toString();
const query = `INSERT IGNORE INTO app_room_message (message_id, room_id) VALUES (?, ?)`;