feat(api): custom spotify crawler interval

This commit is contained in:
Julian Tölle 2020-11-28 18:28:38 +01:00
parent 97f5ef70ac
commit 66fd6ce1b4
6 changed files with 46 additions and 4 deletions

View file

@ -23,7 +23,7 @@ import { ConfigModule as NestConfigModule } from "@nestjs/config";
// Spotify
SPOTIFY_CLIENT_ID: Joi.string().required(),
SPOTIFY_CLIENT_SECRET: Joi.string().required(),
SPOTIFY_FETCH_INTERVAL_MS: Joi.number().default(5 * 60 * 1000),
SPOTIFY_FETCH_INTERVAL_SEC: Joi.number().default(60),
SPOTIFY_WEB_API_URL: Joi.string().default("https://api.spotify.com/"),
SPOTIFY_AUTH_API_URL: Joi.string().default(
"https://accounts.spotify.com/"