Browse Source

fix

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
3e66a3a8be
  1. 6
      api/network/modify.ts
  2. 6
      dist/api/network/modify.js
  3. 2
      dist/api/network/modify.js.map

6
api/network/modify.ts

@ -57,7 +57,7 @@ export async function purchaseFromOriginalSender(payload, chat, purchaser){
}
console.log('send the thingy')
sendMessage({
chat: {...chat.dataValues, contactIds:[mediaKey.sender]}, // the merchant id
chat: {...chat.dataValues, contactIds:[purchaser.id]}, // the merchant id
sender: owner,
type: constants.message_types.purchase_accept,
message: msg,
@ -67,9 +67,9 @@ export async function purchaseFromOriginalSender(payload, chat, purchaser){
// PAY THE OG POSTER HERE!!!
console.log('pay the dude')
sendMessage({
chat: {...chat.dataValues, contactIds:[purchaser.id]},
chat: {...chat.dataValues, contactIds:[mediaKey.sender]},
sender: owner,
type: constants.message_types.purchase_accept,
type: constants.message_types.purchase,
amount: amount,
message: {
mediaToken: mt,

6
dist/api/network/modify.js

@ -69,7 +69,7 @@ function purchaseFromOriginalSender(payload, chat, purchaser) {
};
console.log('send the thingy');
send_1.sendMessage({
chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [mediaKey.sender] }),
chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [purchaser.id] }),
sender: owner,
type: constants.message_types.purchase_accept,
message: msg,
@ -79,9 +79,9 @@ function purchaseFromOriginalSender(payload, chat, purchaser) {
// PAY THE OG POSTER HERE!!!
console.log('pay the dude');
send_1.sendMessage({
chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [purchaser.id] }),
chat: Object.assign(Object.assign({}, chat.dataValues), { contactIds: [mediaKey.sender] }),
sender: owner,
type: constants.message_types.purchase_accept,
type: constants.message_types.purchase,
amount: amount,
message: {
mediaToken: mt,

2
dist/api/network/modify.js.map

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