({
id,
body,
}: {
id: string;
body: string;
})
| 181 | } |
| 182 | // TODO: call message services instead |
| 183 | export async function updateMessage({ |
| 184 | id, |
| 185 | body, |
| 186 | }: { |
| 187 | id: string; |
| 188 | body: string; |
| 189 | }) { |
| 190 | await prisma.messages.update({ |
| 191 | where: { id }, |
| 192 | data: { |
| 193 | body, |
| 194 | }, |
| 195 | }); |
| 196 | } |
| 197 | |
| 198 | export async function setMessageExternalId(id: string, externalId: string) { |
| 199 | await prisma.messages.update({ |
no test coverage detected