chore: change env name

This commit is contained in:
Simon Ding
2024-11-20 19:21:25 +08:00
parent ee14cc63b8
commit 990da92b75

View File

@@ -21,7 +21,7 @@ import (
func (c *Client) addSysCron() {
c.registerCronJob("check_running_tasks", "@every 1m", c.checkTasks)
c.registerCronJob("check_available_medias_to_download", "0 0 * * * *", func() error {
v := os.Getenv("NO_AUTO_DOWNLOAD")
v := os.Getenv("POLARIS_NO_AUTO_DOWNLOAD")
if v == "true" {
return nil
}