Skip to content

Commit 026a6a3

Browse files
committed
Try void statement hack
1 parent b740164 commit 026a6a3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/lib/server/job-executors/build.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ export async function product(job: Job<BullMQ.Build.Product>): Promise<unknown>
5050
});
5151
}
5252
const name = pollName(build.id);
53-
job.log(`repeat opts: ${JSON.stringify(BullMQ.RepeatEveryMinute)}`);
53+
/**
54+
* For some arcane reason, adding this line prevents RepeatEveryMinute from being transpiled as an empty object???
55+
* I have no idea why this is necessary here, but not in Scriptoria...
56+
* - Aidan
57+
*/
58+
void BullMQ.RepeatEveryMinute.pattern;
5459
await getQueues().Polling.upsertJobScheduler(name, BullMQ.RepeatEveryMinute, {
5560
name,
5661
data: {

0 commit comments

Comments
 (0)