Skip to content

Commit dd2e999

Browse files
committed
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.
1 parent adcdb8c commit dd2e999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/invidious.cr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ require "./invidious/channels/*"
4949
require "./invidious/user/*"
5050
require "./invidious/search/*"
5151
require "./invidious/routes/**"
52-
require "./invidious/jobs/**"
52+
require "./invidious/jobs/base_job"
53+
require "./invidious/jobs/*"
5354

5455
# Declare the base namespace for invidious
5556
module Invidious

0 commit comments

Comments
 (0)