Browse Source

fix

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
d2e17084cf
  1. 4
      api/controllers/media.ts
  2. 4
      dist/api/controllers/media.js
  3. 2
      dist/api/controllers/media.js.map

4
api/controllers/media.ts

@ -224,14 +224,14 @@ const receivePurchase = async (payload) => {
return console.log('no muid')
}
const ogMessage = models.Message.findOne({
const ogMessage = await models.Message.findOne({
where:{mediaToken}
})
if (!ogMessage){
return console.log('no original message')
}
// find mediaKey for who sent
const mediaKey = models.MediaKey.findOne({where:{
const mediaKey = await models.MediaKey.findOne({where:{
muid, receiver: sender.id,
}})
console.log('mediaKey found!',mediaKey)

4
dist/api/controllers/media.js

@ -197,14 +197,14 @@ const receivePurchase = (payload) => __awaiter(void 0, void 0, void 0, function*
if (!muid) {
return console.log('no muid');
}
const ogMessage = models_1.models.Message.findOne({
const ogMessage = yield models_1.models.Message.findOne({
where: { mediaToken }
});
if (!ogMessage) {
return console.log('no original message');
}
// find mediaKey for who sent
const mediaKey = models_1.models.MediaKey.findOne({ where: {
const mediaKey = yield models_1.models.MediaKey.findOne({ where: {
muid, receiver: sender.id,
} });
console.log('mediaKey found!', mediaKey);

2
dist/api/controllers/media.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save