mirror of
https://github.com/stakwork/sphinx-relay.git
synced 2026-08-13 12:33:24 +02:00
feat: added second_brain_url to create tribe on tribe server
This commit is contained in:
parent
ca62559eca
commit
d16c1de085
6 changed files with 9 additions and 3 deletions
1
dist/src/controllers/chats.js
vendored
1
dist/src/controllers/chats.js
vendored
|
|
@ -326,6 +326,7 @@ function createGroupChat(req, res) {
|
|||
owner_route_hint: owner.routeHint || '',
|
||||
pin: pin || '',
|
||||
profile_filters: profile_filters || '',
|
||||
second_brain_url: second_brain_url || '',
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
|
|
|
|||
2
dist/src/controllers/chats.js.map
vendored
2
dist/src/controllers/chats.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/src/utils/tribes.js
vendored
3
dist/src/utils/tribes.js
vendored
|
|
@ -362,7 +362,7 @@ function getTribeOwnersChatByUUID(uuid) {
|
|||
});
|
||||
}
|
||||
exports.getTribeOwnersChatByUUID = getTribeOwnersChatByUUID;
|
||||
function declare({ uuid, name, description, tags, img, group_key, host, price_per_message, price_to_join, owner_alias, owner_pubkey, escrow_amount, escrow_millis, unlisted, is_private, app_url, feed_url, feed_type, owner_route_hint, pin, profile_filters, }) {
|
||||
function declare({ uuid, name, description, tags, img, group_key, host, price_per_message, price_to_join, owner_alias, owner_pubkey, escrow_amount, escrow_millis, unlisted, is_private, app_url, feed_url, feed_type, owner_route_hint, pin, profile_filters, second_brain_url, }) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
let protocol = 'https';
|
||||
|
|
@ -391,6 +391,7 @@ function declare({ uuid, name, description, tags, img, group_key, host, price_pe
|
|||
owner_route_hint: owner_route_hint || '',
|
||||
pin: pin || '',
|
||||
profile_filters,
|
||||
second_brain_url,
|
||||
}),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
|
|
|
|||
2
dist/src/utils/tribes.js.map
vendored
2
dist/src/utils/tribes.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -382,6 +382,7 @@ export async function createGroupChat(req: Req, res: Res): Promise<void> {
|
|||
owner_route_hint: owner.routeHint || '',
|
||||
pin: pin || '',
|
||||
profile_filters: profile_filters || '',
|
||||
second_brain_url: second_brain_url || '',
|
||||
})
|
||||
} catch (e) {
|
||||
sphinxLogger.error(`=> couldnt create tribe ${e}`)
|
||||
|
|
|
|||
|
|
@ -433,6 +433,7 @@ export interface TribeInterface {
|
|||
owner_route_hint: string
|
||||
pin: string
|
||||
profile_filters?: string
|
||||
second_brain_url?: string
|
||||
}
|
||||
|
||||
export async function declare({
|
||||
|
|
@ -457,6 +458,7 @@ export async function declare({
|
|||
owner_route_hint,
|
||||
pin,
|
||||
profile_filters,
|
||||
second_brain_url,
|
||||
}: TribeInterface): Promise<void> {
|
||||
try {
|
||||
let protocol = 'https'
|
||||
|
|
@ -484,6 +486,7 @@ export async function declare({
|
|||
owner_route_hint: owner_route_hint || '',
|
||||
pin: pin || '',
|
||||
profile_filters,
|
||||
second_brain_url,
|
||||
}),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue