fixes
This commit is contained in:
@@ -293,7 +293,7 @@ export function useNostr() {
|
||||
}
|
||||
}
|
||||
|
||||
async function registerBot(name: string, webhookUrl: string, archetype: string): Promise<BotData> {
|
||||
async function registerBot(name: string, webhookUrl: string, archetype: string): Promise<{ bot: BotData; secret: string; mode: string }> {
|
||||
if (!pubkey.value) throw new Error('Not logged in')
|
||||
|
||||
const res = await authFetch('/api/auth/register', {
|
||||
@@ -341,7 +341,7 @@ export function useNostr() {
|
||||
// Non-critical: existing JWT still works, just missing botId
|
||||
}
|
||||
|
||||
return bot.value
|
||||
return { bot: bot.value, secret: data.secret, mode: data.mode || 'webhook' }
|
||||
}
|
||||
|
||||
async function updateCustomization(customization: BotCustomization): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user