Skip to content

Commit bbcaa6e

Browse files
Fix invalid variable
1 parent 88ecadb commit bbcaa6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/AttachmentService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function createAttachment (currentUser, challengeId, attachments) {
6363
validateUrl(attachment.url)
6464
const attachmentObject = { id: uuid(), challengeId, ...attachment }
6565
const newAttachment = await helper.create('Attachment', attachmentObject)
66-
await helper.postBusEvent(constants.Topics.ChallengeAttachmentCreated, ret)
66+
await helper.postBusEvent(constants.Topics.ChallengeAttachmentCreated, newAttachment)
6767
newAttachments.push(newAttachment)
6868
}
6969
// update challenge object

0 commit comments

Comments
 (0)