From fdfa1fdafdace051599041636a1fa94a37f99564 Mon Sep 17 00:00:00 2001 From: John Micko Date: Wed, 3 Jan 2024 19:46:28 -0600 Subject: [PATCH] Haha whoops, from is the username, not user id --- server/modules/database/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/database/messages.js b/server/modules/database/messages.js index 13c0f0e4..fc4a85ab 100644 --- a/server/modules/database/messages.js +++ b/server/modules/database/messages.js @@ -12,7 +12,7 @@ export const createMessagesTable = async () => { "type" VARCHAR(255), "text" TEXT, "timestamp" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, - "from" integer, + "from" VARCHAR(255), "to" VARCHAR(255) DEFAULT 'all', "deleted" BOOLEAN DEFAULT false, "read" BOOLEAN DEFAULT false,