Browse Source

fix amt

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

7
api/controllers/media.ts

@ -183,8 +183,9 @@ const purchase = async (req, res) => {
sender: owner,
type: constants.message_types.purchase,
message: msg,
amount: amount,
success: async (data) => {
console.log('purchase sent', { data })
console.log('purchase sent!')
resUtils.success(res, jsonUtils.messageToJson(message, chat))
},
failure: error=> resUtils.failure(res, error.message),
@ -253,7 +254,7 @@ const receivePurchase = async (payload) => {
type: constants.message_types.purchase_deny,
message: {amount,content:'Payment Denied'},
success: async (data) => {
console.log('purchase_deny sent', { data })
console.log('purchase_deny sent')
},
failure: error=> console.log('=> couldnt send purcahse deny', error),
})
@ -273,7 +274,7 @@ const receivePurchase = async (payload) => {
mediaType: ogMessage.mediaType,
},
success: async (data) => {
console.log('purchase_accept sent', { data })
console.log('purchase_accept sent!')
},
failure: error=> console.log('=> couldnt send purchase accept', error),
})

7
dist/api/controllers/media.js

@ -162,8 +162,9 @@ const purchase = (req, res) => __awaiter(void 0, void 0, void 0, function* () {
sender: owner,
type: constants.message_types.purchase,
message: msg,
amount: amount,
success: (data) => __awaiter(void 0, void 0, void 0, function* () {
console.log('purchase sent', { data });
console.log('purchase sent!');
resUtils.success(res, jsonUtils.messageToJson(message, chat));
}),
failure: error => resUtils.failure(res, error.message),
@ -226,7 +227,7 @@ const receivePurchase = (payload) => __awaiter(void 0, void 0, void 0, function*
type: constants.message_types.purchase_deny,
message: { amount, content: 'Payment Denied' },
success: (data) => __awaiter(void 0, void 0, void 0, function* () {
console.log('purchase_deny sent', { data });
console.log('purchase_deny sent');
}),
failure: error => console.log('=> couldnt send purcahse deny', error),
});
@ -245,7 +246,7 @@ const receivePurchase = (payload) => __awaiter(void 0, void 0, void 0, function*
mediaType: ogMessage.mediaType,
},
success: (data) => __awaiter(void 0, void 0, void 0, function* () {
console.log('purchase_accept sent', { data });
console.log('purchase_accept sent!');
}),
failure: error => console.log('=> couldnt send purchase accept', error),
});

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

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