mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-14 02:20:12 +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
|
// We create each message individually because prisma
|
||||||
// with sqlite does not support createMany()
|
// with sqlite does not support createMany()
|
||||||
for (const [index, message] of messages.entries()) {
|
for (const [index, message] of messages.entries()) {
|
||||||
if (!message.response) continue;
|
if (!message.response && !message.user) continue;
|
||||||
await prisma.welcome_messages.create({
|
await prisma.welcome_messages.create({
|
||||||
data: {
|
data: {
|
||||||
user: message.user,
|
user: message.user,
|
||||||
|
Loading…
Reference in New Issue
Block a user