Skip to content

Commit 5a7b191

Browse files
committed
feat: add second_brain_url when creating a tribe
1 parent 205a0fa commit 5a7b191

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

dist/src/controllers/chatTribes.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/controllers/chatTribes.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/controllers/chats.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/controllers/chats.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controllers/chatTribes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,8 @@ export async function createTribeChatParams(
945945
meme_server_location: string,
946946
jitsi_server: string,
947947
stakwork_api_key: string,
948-
stakwork_webhook: string
948+
stakwork_webhook: string,
949+
second_brain_url: string
949950
): Promise<{ [k: string]: any }> {
950951
const date = new Date()
951952
date.setMilliseconds(0)
@@ -988,6 +989,7 @@ export async function createTribeChatParams(
988989
jitsiServer: jitsi_server || '',
989990
stakworkApiKey: stakwork_api_key || '',
990991
stakworkWebhook: stakwork_webhook || '',
992+
secondBrainUrl: second_brain_url || '',
991993
}
992994
}
993995

src/controllers/chats.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ export async function createGroupChat(req: Req, res: Res): Promise<void> {
289289
jitsi_server,
290290
stakwork_api_key,
291291
stakwork_webhook,
292+
second_brain_url,
292293
} = req.body
293294

294295
let { profile_filters } = req.body
@@ -353,7 +354,8 @@ export async function createGroupChat(req: Req, res: Res): Promise<void> {
353354
meme_server_location,
354355
jitsi_server,
355356
stakwork_api_key,
356-
stakwork_webhook
357+
stakwork_webhook,
358+
second_brain_url
357359
)) as Chat
358360
if (chatParams.uuid) {
359361
// publish to tribe server

0 commit comments

Comments
 (0)