fix: now in typebot we wait until the terminal block to accept the user's message, if it arrives before the block is sent, it is ignored

This commit is contained in:
Davidson Gomes
2024-06-08 15:09:55 -03:00
parent ff31ef912e
commit 56df0caab0
4 changed files with 27 additions and 15 deletions

View File

@@ -70,13 +70,13 @@ model Session {
}
model Chat {
id Int @id @default(autoincrement())
remoteJid String @db.VarChar(100)
labels Json? @db.JsonB
createdAt DateTime? @default(now()) @db.Timestamp
updatedAt DateTime? @updatedAt @db.Timestamp
Instance Instance @relation(fields: [instanceId], references: [id], onDelete: Cascade)
instanceId String
id Int @id @default(autoincrement())
remoteJid String @db.VarChar(100)
labels Json? @db.JsonB
createdAt DateTime? @default(now()) @db.Timestamp
updatedAt DateTime? @updatedAt @db.Timestamp
Instance Instance @relation(fields: [instanceId], references: [id], onDelete: Cascade)
instanceId String
}
model Contact {
@@ -256,6 +256,7 @@ model TypebotSession {
sessionId String @db.VarChar(100)
status String @db.VarChar(100)
prefilledVariables Json? @db.JsonB
awaitUser Boolean @default(false) @db.Boolean
createdAt DateTime? @default(now()) @db.Timestamp
updatedAt DateTime @updatedAt @db.Timestamp
Typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)