Browse Source

logz

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
c70ac6b8d6
  1. 1
      api/controllers/chats.ts
  2. 4
      dist/api/controllers/chats.js
  3. 2
      dist/api/controllers/chats.js.map

1
api/controllers/chats.ts

@ -244,6 +244,7 @@ async function joinTribe(req, res){
groupKey: group_key,
}
console.log("JOIN TRIBE AMOUNT",amount)
network.sendMessage({ // send my data to tribe owner
chat: {
...chatParams, members: {

4
dist/api/controllers/chats.js

@ -194,7 +194,7 @@ exports.deleteChat = deleteChat;
function joinTribe(req, res) {
return __awaiter(this, void 0, void 0, function* () {
console.log('=> joinTribe');
const { uuid, group_key, name, host } = req.body;
const { uuid, group_key, name, host, amount } = req.body;
const existing = yield models_1.models.Chat.findOne({ where: { uuid } });
if (existing) {
console.log('[tribes] u are already in this group');
@ -232,6 +232,7 @@ function joinTribe(req, res) {
host: host || tribes.getHost(),
groupKey: group_key,
};
console.log("JOIN TRIBE AMOUNT", amount);
network.sendMessage({
chat: Object.assign(Object.assign({}, chatParams), { members: {
[owner.publicKey]: {
@ -239,6 +240,7 @@ function joinTribe(req, res) {
alias: owner.alias || ''
}
} }),
amount: amount || 0,
sender: owner,
message: {},
type: constants.message_types.group_join,

2
dist/api/controllers/chats.js.map

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