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 { try {
if(mqttTopic) { if(mqttTopic) {
await tribes.publish(mqttTopic, data, function(){ await tribes.publish(mqttTopic, data, function(){
console.log("PUB HERE") if(mqttTopic) checkIfConfirmation(opts.data)
if(mqttTopic) checkIfConfirmation(data)
}) })
} else { } else {
await LND.keysendMessage({...opts,data}) await LND.keysendMessage({...opts,data})

1
api/utils/tribes.ts

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

3
dist/api/network/send.js

@ -115,9 +115,8 @@ function signAndSend(opts, mqttTopic) {
try { try {
if (mqttTopic) { if (mqttTopic) {
yield tribes.publish(mqttTopic, data, function () { yield tribes.publish(mqttTopic, data, function () {
console.log("PUB HERE");
if (mqttTopic) if (mqttTopic)
checkIfConfirmation(data); checkIfConfirmation(opts.data);
}); });
} }
else { 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) { function publish(topic, msg, cb) {
if (client) if (client)
client.publish(topic, msg, null, function (err) { client.publish(topic, msg, null, function (err) {
console.log("CALLBACK");
if (err) if (err)
console.log(err); console.log(err);
else if (cb) else if (cb)

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

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