Skip to content

Commit

Permalink
Fix some references from task change
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Oct 10, 2024
1 parent df44fda commit d9ed869
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { error } from '@sveltejs/kit';
import { BullMQ, scriptoriaQueue } from 'sil.appbuilder.portal.common';
import { BullMQ, queues } from 'sil.appbuilder.portal.common';
import { RoleId } from 'sil.appbuilder.portal.common/prisma';
import { fail, superValidate } from 'sveltekit-superforms';
import { valibot } from 'sveltekit-superforms/adapters';
Expand All @@ -17,7 +17,7 @@ export const actions = {
}
const form = await superValidate(event.request, valibot(secondsSchema));
if (!form.valid) return fail(400, { ok: false });
await scriptoriaQueue.add('Admin Test Task (No-op)', {
await queues.scriptoria.add('Admin Test Task (No-op)', {
type: BullMQ.ScriptoriaJobType.Test,
time: form.data.seconds
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as v from 'valibot';
import type { Session } from '@auth/sveltekit';
import type { Actions, PageServerLoad } from './$types';
import { RoleId } from 'sil.appbuilder.portal.common/prisma';
import { scriptoriaQueue, BullMQ } from 'sil.appbuilder.portal.common';
import { queues, BullMQ } from 'sil.appbuilder.portal.common';
import { time } from 'console';

const projectCreateSchema = v.object({
Expand Down Expand Up @@ -90,8 +90,8 @@ export const actions: Actions = {
});

if (project !== false) {
scriptoriaQueue.add(`Create Project #${project}`, {
type: BullMQ.ScriptoriaJobType.CreateProject,
queues.scriptoria.add(`Create Project #${project}`, {
type: BullMQ.ScriptoriaJobType.Project_Create,
projectId: project as number
});
}
Expand Down

0 comments on commit d9ed869

Please sign in to comment.