Skip to content

Commit 37360ad

Browse files
committed
fix: schedule run failed
1 parent c014fd3 commit 37360ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

agent/src/modules/chat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export const chatModule = new Elysia({ prefix: '/chat' })
9595
}),
9696
})
9797
.post('/trigger-schedule', async ({ body, bearer }) => {
98+
console.log('trigger-schedule', body)
9899
const authFetcher = createAuthFetcher(bearer)
99100
const { triggerSchedule } = createAgent({
100101
model: body.model as ModelConfig,

internal/conversation/flow/resolver.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,9 @@ func (r *Resolver) TriggerSchedule(ctx context.Context, botID string, payload sc
314314
return fmt.Errorf("schedule command is required")
315315
}
316316

317-
chatID := "schedule-" + payload.ID
318317
req := conversation.ChatRequest{
319318
BotID: botID,
320-
ChatID: chatID,
319+
ChatID: botID,
321320
Query: payload.Command,
322321
UserID: payload.OwnerUserID,
323322
Token: token,

0 commit comments

Comments
 (0)