Browse Source

test

hosting-provider
Evan Feenstra 5 years ago
parent
commit
c8c9805ac7
  1. 1
      api/controllers/chatTribes.ts
  2. 9
      api/utils/tribes.ts
  3. 1
      dist/api/controllers/chatTribes.js
  4. 2
      dist/api/controllers/chatTribes.js.map
  5. 9
      dist/api/utils/tribes.js
  6. 2
      dist/api/utils/tribes.js.map

1
api/controllers/chatTribes.ts

@ -119,6 +119,7 @@ async function editTribe(req, res) {
let okToUpdate = true
if(is_listed) {
try{
console.log("LLLLL",escrow_amount,escrow_millis)
await tribes.edit({
uuid: chat.uuid,
name: name,

9
api/utils/tribes.ts

@ -107,6 +107,15 @@ export async function edit({ uuid, host, name, description, tags, img, price_per
}),
headers: { 'Content-Type': 'application/json' }
})
console.log(JSON.stringify({
uuid,
name, description, tags, img: img || '',
price_per_message: price_per_message || 0,
price_to_join: price_to_join || 0,
escrow_amount: escrow_amount || 0,
escrow_millis: escrow_millis || 0,
owner_alias,
}))
// const j = await r.json()
} catch(e) {
console.log('[tribes] unauthorized to edit')

1
dist/api/controllers/chatTribes.js

@ -112,6 +112,7 @@ function editTribe(req, res) {
let okToUpdate = true;
if (is_listed) {
try {
console.log("LLLLL", escrow_amount, escrow_millis);
yield tribes.edit({
uuid: chat.uuid,
name: name,

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

File diff suppressed because one or more lines are too long

9
dist/api/utils/tribes.js

@ -126,6 +126,15 @@ function edit({ uuid, host, name, description, tags, img, price_per_message, pri
}),
headers: { 'Content-Type': 'application/json' }
});
console.log(JSON.stringify({
uuid,
name, description, tags, img: img || '',
price_per_message: price_per_message || 0,
price_to_join: price_to_join || 0,
escrow_amount: escrow_amount || 0,
escrow_millis: escrow_millis || 0,
owner_alias,
}));
// const j = await r.json()
}
catch (e) {

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

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