Browse Source

network typ elogic

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
16da350e4f
  1. 2
      dist/src/controllers/messages.js
  2. 2
      dist/src/controllers/messages.js.map
  3. 2
      src/controllers/messages.ts

2
dist/src/controllers/messages.js

@ -155,7 +155,7 @@ exports.sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function*
// IF BOOST AND TRIBE OWNER NEED TO SEND ACTUAL SATS TO OG POSTER
const isTribe = chat.type === constants_1.default.chat_types.tribe;
const isTribeOwner = isTribe && owner.publicKey === chat.ownerPubkey;
if (isTribeOwner && reply_uuid && boost && amount) {
if ((!isTribe || isTribeOwner) && reply_uuid && boost && amount) {
const ogMsg = yield models_1.models.Message.findOne({ where: {
uuid: reply_uuid,
} });

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

File diff suppressed because one or more lines are too long

2
src/controllers/messages.ts

@ -177,7 +177,7 @@ export const sendMessage = async (req, res) => {
// IF BOOST AND TRIBE OWNER NEED TO SEND ACTUAL SATS TO OG POSTER
const isTribe = chat.type===constants.chat_types.tribe
const isTribeOwner = isTribe && owner.publicKey===chat.ownerPubkey
if(isTribeOwner && reply_uuid && boost && amount) {
if((!isTribe || isTribeOwner) && reply_uuid && boost && amount) {
const ogMsg = await models.Message.findOne({where:{
uuid: reply_uuid,
}})

Loading…
Cancel
Save