mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
fix: schedule run failed
This commit is contained in:
@@ -95,6 +95,7 @@ export const chatModule = new Elysia({ prefix: '/chat' })
|
||||
}),
|
||||
})
|
||||
.post('/trigger-schedule', async ({ body, bearer }) => {
|
||||
console.log('trigger-schedule', body)
|
||||
const authFetcher = createAuthFetcher(bearer)
|
||||
const { triggerSchedule } = createAgent({
|
||||
model: body.model as ModelConfig,
|
||||
|
||||
@@ -314,10 +314,9 @@ func (r *Resolver) TriggerSchedule(ctx context.Context, botID string, payload sc
|
||||
return fmt.Errorf("schedule command is required")
|
||||
}
|
||||
|
||||
chatID := "schedule-" + payload.ID
|
||||
req := conversation.ChatRequest{
|
||||
BotID: botID,
|
||||
ChatID: chatID,
|
||||
ChatID: botID,
|
||||
Query: payload.Command,
|
||||
UserID: payload.OwnerUserID,
|
||||
Token: token,
|
||||
|
||||
Reference in New Issue
Block a user