We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59383d5 commit 5eaabfbCopy full SHA for 5eaabfb
src/api/integrations/channel/meta/whatsapp.business.service.ts
@@ -358,9 +358,13 @@ export class BusinessStartupService extends ChannelStartupService {
358
'Content-Type': mimetype,
359
});
360
361
+ const createdMessage = await this.prismaRepository.message.create({
362
+ data: messageRaw,
363
+ });
364
+
365
await this.prismaRepository.media.create({
366
data: {
- messageId: received.messages[0].id,
367
+ messageId: createdMessage.id,
368
instanceId: this.instanceId,
369
type: mediaType,
370
fileName: fullName,
0 commit comments