diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() |
