Browse Source

fix'

hosting-provider
Evan Feenstra 5 years ago
parent
commit
97ded8e890
  1. 3
      api/network/send.ts
  2. 1
      api/utils/tribes.ts
  3. 3
      dist/api/network/send.js
  4. 2
      dist/api/network/send.js.map
  5. 1
      dist/api/utils/tribes.js
  6. 2
      dist/api/utils/tribes.js.map

3
api/network/send.ts

@ -107,8 +107,7 @@ export function signAndSend(opts, mqttTopic?:string){
try {
if(mqttTopic) {
await tribes.publish(mqttTopic, data, function(){
console.log("PUB HERE")
if(mqttTopic) checkIfConfirmation(data)
if(mqttTopic) checkIfConfirmation(opts.data)
})
} else {
await LND.keysendMessage({...opts,data})

1
api/utils/tribes.ts

@ -67,7 +67,6 @@ export function subscribe(topic) {
export function publish(topic, msg, cb) {
if (client) client.publish(topic, msg, null, function(err){
console.log("CALLBACK")
if(err) console.log(err)
else if(cb) cb()
})

3
dist/api/network/send.js

@ -115,9 +115,8 @@ function signAndSend(opts, mqttTopic) {
try {
if (mqttTopic) {
yield tribes.publish(mqttTopic, data, function () {
console.log("PUB HERE");
if (mqttTopic)
checkIfConfirmation(data);
checkIfConfirmation(opts.data);
});
}
else {

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

File diff suppressed because one or more lines are too long

1
dist/api/utils/tribes.js

@ -82,7 +82,6 @@ exports.subscribe = subscribe;
function publish(topic, msg, cb) {
if (client)
client.publish(topic, msg, null, function (err) {
console.log("CALLBACK");
if (err)
console.log(err);
else if (cb)

2
dist/api/utils/tribes.js.map

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