fully cleaned things up, few more things to go.
This commit is contained in:
parent
e5170b1c78
commit
ad5e353ec3
11 changed files with 180 additions and 362 deletions
|
|
@ -23,7 +23,7 @@ queueRoutes.get('/api/queue/status', async c => {
|
|||
queueRoutes.post('/api/queue/job', async c => {
|
||||
try {
|
||||
const { name, data, options } = await c.req.json();
|
||||
const job = await queueManager.addJob(name, data, options);
|
||||
const job = await queueManager.add(name, data, options);
|
||||
return c.json({ status: 'success', jobId: job.id });
|
||||
} catch (error) {
|
||||
logger.error('Failed to add job', { error });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue