mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
Add missing jobId to general.task (#220)
* Add missing jobId to general.task Should maybe just pass the whole job through... * Fix roo code production name
This commit is contained in:
parent
900a9014dc
commit
12185d08a4
3 changed files with 6 additions and 2 deletions
|
|
@ -36,7 +36,9 @@ export async function createAndEnqueueJob<T extends JobType>(
|
|||
await db
|
||||
.select({ id: orgs.id })
|
||||
.from(orgs)
|
||||
.where(or(eq(orgs.name, 'Roo Code'), eq(orgs.name, 'Roo Code / Dev')))
|
||||
.where(
|
||||
or(eq(orgs.name, 'Roo Code, Inc.'), eq(orgs.name, 'Roo Code / Dev')),
|
||||
)
|
||||
.limit(1)
|
||||
)[0]?.id;
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export async function processJob<T extends JobType>({
|
|||
|
||||
case 'general.task': {
|
||||
const jobPayload = payload as JobPayload<'general.task'>;
|
||||
result = await processGeneralTask(jobPayload, { onTaskStarted });
|
||||
result = await processGeneralTask(jobPayload, jobId, { onTaskStarted });
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { runTask, type RunTaskCallbacks } from '../runTask';
|
|||
|
||||
export async function processGeneralTask(
|
||||
jobPayload: JobPayload<'general.task'>,
|
||||
jobId: number,
|
||||
callbacks?: RunTaskCallbacks,
|
||||
mode?: string,
|
||||
) {
|
||||
|
|
@ -22,6 +23,7 @@ Please complete this task and create a pull request with your changes when finis
|
|||
const result = await runTask({
|
||||
jobType: 'general.task',
|
||||
jobPayload,
|
||||
jobId,
|
||||
prompt,
|
||||
callbacks,
|
||||
notify: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue