mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
[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:
parent
0dd6001fa6
commit
fa4adb1e56
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user