[FIX] User messages not saving due to empty message check (#978)

fix user messages not saving due to empty message check
This commit is contained in:
Sean Hatfield 2024-03-27 10:45:20 -07:00 committed by GitHub
parent 0dd6001fa6
commit fa4adb1e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,