mirror of https://github.com/buster-so/buster.git
pass up userId
This commit is contained in:
parent
6b01f2f97a
commit
a20c8dad56
|
@ -90,9 +90,10 @@ export async function findOrCreateSlackChat({
|
|||
/**
|
||||
* Queue slack agent task for processing
|
||||
*/
|
||||
export async function queueSlackAgentTask(chatId: string): Promise<void> {
|
||||
export async function queueSlackAgentTask(chatId: string, userId: string): Promise<void> {
|
||||
await tasks.trigger('slack-agent-task', {
|
||||
chatId,
|
||||
userId,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -168,7 +169,7 @@ export async function eventsHandler(payload: SlackWebhookPayload): Promise<Slack
|
|||
});
|
||||
|
||||
// Queue the task
|
||||
await queueSlackAgentTask(chatId);
|
||||
await queueSlackAgentTask(chatId, userId);
|
||||
}
|
||||
|
||||
return { success: true };
|
||||
|
|
|
@ -3,6 +3,7 @@ import { z } from 'zod';
|
|||
|
||||
const SlackAgentTaskInputSchema = z.object({
|
||||
chatId: z.string().uuid(),
|
||||
userId: z.string().uuid(),
|
||||
});
|
||||
|
||||
const SlackAgentTaskOutputSchema = z.object({});
|
||||
|
|
Loading…
Reference in New Issue