change archi and use schema routes

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

No files matched your search

-1
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 (?, ?)`;