Browse Source

fix second buyer

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

2
api/network/modify.ts

@ -45,7 +45,7 @@ export async function purchaseFromOriginalSender(payload, chat, purchaser){
console.log("MEDIA KEY EXISTS ALREADY",mediaKey)
// send back the new mediaToken and key
const mediaTerms: {[k:string]:any} = {
muid, ttl:31536000, host:'',
muid:mediaKey.muid, ttl:31536000, host:'',
meta:{...amount && {amt:amount}},
}
// send full new key and token

2
dist/api/network/modify.js

@ -57,7 +57,7 @@ function purchaseFromOriginalSender(payload, chat, purchaser) {
console.log("MEDIA KEY EXISTS ALREADY", mediaKey);
// send back the new mediaToken and key
const mediaTerms = {
muid, ttl: 31536000, host: '',
muid: mediaKey.muid, ttl: 31536000, host: '',
meta: Object.assign({}, amount && { amt: amount }),
};
// send full new key and token

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

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