fix: status on send message

This commit is contained in:
Davidson Gomes 2024-10-06 10:04:02 -03:00
parent 0f7c2437bc
commit c823f84c70
3 changed files with 4 additions and 2 deletions

View File

@ -159,7 +159,7 @@ model Message {
MessageUpdate MessageUpdate[]
Media Media?
webhookUrl String? @db.VarChar(500)
status Int? @db.Int
status String? @db.VarChar(30)
sessionId String?
session IntegrationSession? @relation(fields: [sessionId], references: [id])

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Message" ALTER COLUMN "status" SET DATA TYPE VARCHAR(30);

View File

@ -158,7 +158,7 @@ model Message {
MessageUpdate MessageUpdate[]
Media Media?
webhookUrl String? @db.VarChar(500)
status Int? @db.Integer
status String? @db.VarChar(30)
sessionId String?
session IntegrationSession? @relation(fields: [sessionId], references: [id])