Skip to content

Commit b552cf2

Browse files
committed
chore: wip
1 parent 1e6929c commit b552cf2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

storage/framework/core/queue/src/process.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { JitterConfig, JobOptions } from '@stacksjs/types'
22
import type { JobModel } from '../../../orm/src/models/Job'
33
import { ok, type Ok } from '@stacksjs/error-handling'
44
import { log } from '@stacksjs/logging'
5-
import { Job, FailedJob } from '@stacksjs/orm'
5+
import { FailedJob, Job } from '@stacksjs/orm'
66
import { runJob } from './job'
77

88
interface QueuePayload {
@@ -28,7 +28,7 @@ export async function processJobs(queue: string | undefined): Promise<Ok<string,
2828
}
2929

3030
export async function executeFailedJobs(): Promise<void> {
31-
const failedJobs = await FailedJob.all()
31+
const failedJobs = await FailedJob.all()
3232

3333
for (const job of failedJobs) {
3434
if (!job.payload)
@@ -85,7 +85,7 @@ export async function retryFailedJob(id: number): Promise<void> {
8585
})
8686

8787
await failedJob.delete()
88-
88+
8989
log.info(`Successfully ran job: ${body.path}`)
9090
}
9191
catch (error) {

storage/framework/server-auto-imports.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@
162162
"UsersTable": true,
163163
"request": true
164164
}
165-
}
165+
}

storage/framework/types/server-auto-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ declare global {
162162
const Users: typeof import('./../orm/src/models')['Users']
163163
const UsersTable: typeof import('./../orm/src/models')['UsersTable']
164164
const request: typeof import('./../requests')['request']
165-
}
165+
}

0 commit comments

Comments
 (0)