Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Apr 3, 2020
1 parent 8b8fe49 commit 119bc38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions api/controllers/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,16 @@ const receivePurchase = async (payload) => {
return console.log('=> group chat not found!')
}

const message = {

const message = await models.Message.create({
chatId: chat.id,
sender: sender.id,
type: constants.message_types.purchase,
mediaToken: mediaToken,
date: date,
createdAt: date,
updatedAt: date
}
await models.Message.create(message)
})
socket.sendJson({
type: 'purchase',
response: jsonUtils.messageToJson(message, chat, sender)
Expand Down
5 changes: 2 additions & 3 deletions dist/api/controllers/media.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 119bc38

Please sign in to comment.