mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-21 19:47:21 -06:00
fixed messageId
This commit is contained in:
parent
59383d5944
commit
5eaabfb1eb
@ -358,9 +358,13 @@ export class BusinessStartupService extends ChannelStartupService {
|
|||||||
'Content-Type': mimetype,
|
'Content-Type': mimetype,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const createdMessage = await this.prismaRepository.message.create({
|
||||||
|
data: messageRaw,
|
||||||
|
});
|
||||||
|
|
||||||
await this.prismaRepository.media.create({
|
await this.prismaRepository.media.create({
|
||||||
data: {
|
data: {
|
||||||
messageId: received.messages[0].id,
|
messageId: createdMessage.id,
|
||||||
instanceId: this.instanceId,
|
instanceId: this.instanceId,
|
||||||
type: mediaType,
|
type: mediaType,
|
||||||
fileName: fullName,
|
fileName: fullName,
|
||||||
|
Loading…
Reference in New Issue
Block a user