diff --git a/.gitignore b/.gitignore index bc20898..565f859 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .vscode node_modules public/build -build-info.js \ No newline at end of file +build-info.js +.env \ No newline at end of file diff --git a/src/network/queues/twitch/api-queue.js b/src/network/queues/twitch/api-queue.js index dab6267..91a13d9 100644 --- a/src/network/queues/twitch/api-queue.js +++ b/src/network/queues/twitch/api-queue.js @@ -1,8 +1,8 @@ -import { default as createQueue, PRIORITY } from "../http-queue"; import ssrConfig from "../../../ssr-config"; import { substituteVars } from "../../../utils/format"; +import { default as createQueue, PRIORITY } from "../http-queue"; -const CLIENT_ID = "u0swxz56n4iumc634at1osoqdk31qt"; +const CLIENT_ID = "r2phvaavwhzh2s19y72na3cq1x4a58"; const TWITCH_AUTH_URL = "https://id.twitch.tv/oauth2"; const AUTHORIZATION_URL = diff --git a/src/services/twitch.js b/src/services/twitch.js index 42c4a9c..885e9e2 100644 --- a/src/services/twitch.js +++ b/src/services/twitch.js @@ -1,11 +1,11 @@ -import queues from "../network/queues/queues"; import keyValueRepository from "../db/repository/key-value"; import twitchRepository from "../db/repository/twitch"; -import createPlayerService from "../services/scoresaber/player"; import profileApiClient from "../network/clients/twitch/api-profile"; import videosApiClient from "../network/clients/twitch/api-videos"; +import { PRIORITY } from "../network/queues/http-queue"; +import queues from "../network/queues/queues"; +import createPlayerService from "../services/scoresaber/player"; import eventBus from "../utils/broadcast-channel-pubsub"; -import log from "../utils/logger"; import { addToDate, dateFromString, @@ -14,7 +14,7 @@ import { millisToDuration, MINUTE, } from "../utils/date"; -import { PRIORITY } from "../network/queues/http-queue"; +import log from "../utils/logger"; import makePendingPromisePool from "../utils/pending-promises"; const TWITCH_TOKEN_KEY = "twitchToken";