Skip to content

Commit

Permalink
[FIX] User messages not saving due to empty message check (#978)
Browse files Browse the repository at this point in the history
fix user messages not saving due to empty message check
  • Loading branch information
shatfield4 authored Mar 27, 2024
1 parent 0dd6001 commit fa4adb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/welcomeMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fa4adb1

Please sign in to comment.