Browse Source

fix payload type===0

push-params
Evan Feenstra 4 years ago
parent
commit
d235b498a6
  1. 2
      api/network/receive.ts
  2. 2
      dist/api/network/receive.js
  3. 2
      dist/api/network/receive.js.map

2
api/network/receive.ts

@ -41,7 +41,7 @@ const botMakerTypes=[
]
async function onReceive(payload){
console.log('===> onReceive',JSON.stringify(payload,null,2))
if(!payload.type) return console.log('no payload.type')
if(!(payload.type||payload.type===0)) return console.log('no payload.type')
if(botMakerTypes.includes(payload.type)) {
// if is admin on tribe? or is bot maker?

2
dist/api/network/receive.js

@ -50,7 +50,7 @@ const botMakerTypes = [
function onReceive(payload) {
return __awaiter(this, void 0, void 0, function* () {
console.log('===> onReceive', JSON.stringify(payload, null, 2));
if (!payload.type)
if (!(payload.type || payload.type === 0))
return console.log('no payload.type');
if (botMakerTypes.includes(payload.type)) {
// if is admin on tribe? or is bot maker?

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

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