summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index afa9289..4b92b1b 100644
--- a/main.go
+++ b/main.go
@@ -6,6 +6,7 @@ import (
"git.hatecomputers.club/hatecomputers/hatecomputers.club/api"
"git.hatecomputers.club/hatecomputers/hatecomputers.club/args"
"git.hatecomputers.club/hatecomputers/hatecomputers.club/database"
+ "git.hatecomputers.club/hatecomputers/hatecomputers.club/scheduler"
"github.com/joho/godotenv"
)
@@ -33,6 +34,10 @@ func main() {
log.Println("database migrated successfully")
}
+ if argv.Scheduler {
+ scheduler.StartScheduler(dbConn)
+ }
+
if argv.Server {
server := api.MakeServer(argv, dbConn)
err = server.ListenAndServe()