feat: added second_brain_url to create tribe on tribe server

This commit is contained in:
Oluwatobi Bamidele 2024-03-21 22:09:23 +01:00
parent ca62559eca
commit d16c1de085
6 changed files with 9 additions and 3 deletions

View file

@ -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) {

File diff suppressed because one or more lines are too long

View file

@ -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' },
});

File diff suppressed because one or more lines are too long

View file

@ -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}`)

View file

@ -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' },
})