Skip to content

Commit

Permalink
await adding job to queue for project
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Oct 31, 2024
1 parent 614b2c8 commit 0da95e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const actions: Actions = {

if (projects) {
// Create products
queues.scriptoria.addBulk(
await queues.scriptoria.addBulk(
projects.map((p) => ({
name: `Create Project #${p}`,
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const actions: Actions = {
});

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

0 comments on commit 0da95e9

Please sign in to comment.