Commit 555fa66
The `getLastMessage` function was using an invalid Prisma where-clause
syntax `{ key: { remoteJid: number } }` for a JSON/JSONB field. Prisma
requires `{ key: { path: ['remoteJid'], equals: value } }` to filter on
a JSON field path. This caused a PrismaClientValidationError whenever
`archiveChat` or `markChatUnread` called `getLastMessage` with a chat
number instead of providing lastMessage directly.
Co-authored-by: octo-patch <octo-patch@github.com>
1 parent 0980928 commit 555fa66
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4164 | 4164 | | |
4165 | 4165 | | |
4166 | 4166 | | |
4167 | | - | |
| 4167 | + | |
4168 | 4168 | | |
4169 | 4169 | | |
4170 | 4170 | | |
| |||
0 commit comments