attachment name

This commit is contained in:
Peter Maquiran
2024-09-04 12:15:44 +01:00
parent 0f3096b25e
commit 5315d185c2
7 changed files with 13 additions and 7 deletions
@@ -26,7 +26,7 @@ export class MessageAttachmentByMessageIdUseCase {
private AttachmentLocalDataSource: AttachmentLocalDataSource
) { }
@XTracerAsync({name:'Message-Attachment-By-MessageIdUseCase', module:'chat', bugPrint: true, waitNThrow: 5000})
@XTracerAsync({name:'Message-Attachment-By-MessageIdUseCase', module:'chat', bugPrint: true, waitNThrow: 15000})
async execute(input: MessageAttachmentByMessageIdInput, tracing?: TracingType): Promise<Result<string, any>> {
tracing.setAttribute('messageId', input.id)
@@ -36,6 +36,7 @@ export class MessageAttachmentByMessageIdUseCase {
})
if(getLocalAttachment.isOk() && getLocalAttachment.value) {
tracing.setAttribute('download', 'false')
// has blob
if(getLocalAttachment.value.file) {