From fa4adb1e56dc866b6d49911e2a3064f3bea35df6 Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Wed, 27 Mar 2024 10:45:20 -0700 Subject: [PATCH] [FIX] User messages not saving due to empty message check (#978) fix user messages not saving due to empty message check --- server/models/welcomeMessages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/welcomeMessages.js b/server/models/welcomeMessages.js index 88393f36..a24c43c9 100644 --- a/server/models/welcomeMessages.js +++ b/server/models/welcomeMessages.js @@ -34,7 +34,7 @@ const WelcomeMessages = { // We create each message individually because prisma // with sqlite does not support createMany() for (const [index, message] of messages.entries()) { - if (!message.response) continue; + if (!message.response && !message.user) continue; await prisma.welcome_messages.create({ data: { user: message.user,