Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style(baileys): wrap media.create data object to satisfy prettier (12…
…0 col)
  • Loading branch information
pastoriniMatheus committed Aug 16, 2026
commit 2e1d158e76c519a4cd402434fbc59c9568736e4e
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,13 @@ export class BaileysStartupService extends ChannelStartupService {
await s3Service.uploadFile(fullName, buffer, size.fileLength?.low, { 'Content-Type': mimetype });

await this.prismaRepository.media.create({
data: { messageId: msg.id, instanceId: this.instanceId, type: mediaType, fileName: fullName, mimetype },
data: {
messageId: msg.id,
instanceId: this.instanceId,
type: mediaType,
fileName: fullName,
mimetype,
},
});

const mediaUrl = await s3Service.getObjectUrl(fullName);
Expand Down
Loading