Browse Source

cleanup

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
785d4b882c
  1. 3
      dist/src/controllers/messages.js
  2. 2
      dist/src/controllers/messages.js.map
  3. 2
      dist/src/network/receive.js
  4. 2
      dist/src/network/receive.js.map
  5. 3
      src/controllers/messages.ts
  6. 2
      src/network/receive.ts

3
dist/src/controllers/messages.js

@ -208,11 +208,10 @@ exports.sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function*
};
if (realSatsContactId)
sendMessageParams.realSatsContactId = realSatsContactId;
console.log(realSatsContactId, isTribeOwner, amtToStore);
// tribe owner deducts the "price per message + escrow amount"
if (realSatsContactId && isTribeOwner && amtToStore) {
sendMessageParams.amount = amtToStore;
}
console.log("=> sendMsgParams", sendMessageParams);
// final send
network.sendMessage(sendMessageParams);
});

2
dist/src/controllers/messages.js.map

File diff suppressed because one or more lines are too long

2
dist/src/network/receive.js

@ -58,7 +58,7 @@ const botMakerTypes = [
];
function onReceive(payload) {
return __awaiter(this, void 0, void 0, function* () {
console.log('===> onReceive', JSON.stringify(payload, null, 2));
// console.log('===> onReceive',JSON.stringify(payload,null,2))
if (!(payload.type || payload.type === 0))
return console.log('no payload.type');
if (botTypes.includes(payload.type)) {

2
dist/src/network/receive.js.map

File diff suppressed because one or more lines are too long

3
src/controllers/messages.ts

@ -233,11 +233,10 @@ export const sendMessage = async (req, res) => {
message: msgToSend,
}
if(realSatsContactId) sendMessageParams.realSatsContactId = realSatsContactId
console.log(realSatsContactId, isTribeOwner, amtToStore)
// tribe owner deducts the "price per message + escrow amount"
if(realSatsContactId && isTribeOwner && amtToStore) {
sendMessageParams.amount = amtToStore
}
console.log("=> sendMsgParams",sendMessageParams)
// final send
network.sendMessage(sendMessageParams)
}

2
src/network/receive.ts

@ -49,7 +49,7 @@ const botMakerTypes=[
constants.message_types.bot_cmd,
]
async function onReceive(payload){
console.log('===> onReceive',JSON.stringify(payload,null,2))
// console.log('===> onReceive',JSON.stringify(payload,null,2))
if(!(payload.type||payload.type===0)) return console.log('no payload.type')
if(botTypes.includes(payload.type)) {

Loading…
Cancel
Save