Skip to content

Commit

Permalink
added queues to console
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jun 16, 2024
1 parent fc78389 commit e7379d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { loadConfig } from '@/core/config'
import { DbType } from '@/core/types'
import { loadDb } from '@/db'
import * as Models from '@/db/models'
import { queues } from '@/queues'
import * as Services from '@/services'

// Global context available to repl.
Expand Down Expand Up @@ -52,6 +53,7 @@ const main = async () => {
...core,
...Models,
...Services,
...Object.fromEntries(queues.map((queue) => [queue.name, queue])),
})

// START REPL
Expand Down

0 comments on commit e7379d9

Please sign in to comment.