mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-31 14:11:54 +05:30
require base_job before the other jobs
The crystal compiler seems to evaluate `require` in an alphabetical way, so if anyone in the future, wants to add another job and that job is above `base_job.cr` in alphabetical order, the compiler is going to fail with `Error: undefined constant: Invidious::Jobs::BaseJob`. This doesn't fix anything, but it will prevent a future headache.
This commit is contained in:
@@ -49,7 +49,8 @@ require "./invidious/channels/*"
|
||||
require "./invidious/user/*"
|
||||
require "./invidious/search/*"
|
||||
require "./invidious/routes/**"
|
||||
require "./invidious/jobs/**"
|
||||
require "./invidious/jobs/base_job"
|
||||
require "./invidious/jobs/*"
|
||||
|
||||
# Declare the base namespace for invidious
|
||||
module Invidious
|
||||
|
Reference in New Issue
Block a user