aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/updateCache.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-17 14:11:37 -0400
commitda70ed6f4ad82c58adf7dc6120aa8b6b255238e9 (patch)
treea1d80d6d89ae249893c300234d034934a55ea0b4 /src/tasks/updateCache.ts
parentd1724227abfb8f0fcd9e573f7e9772cf0be8257a (diff)
downloadtanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.gz
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.tar.bz2
tanzanite-da70ed6f4ad82c58adf7dc6120aa8b6b255238e9.zip
rewrote config for absolutly no reason :troll:
Diffstat (limited to 'src/tasks/updateCache.ts')
-rw-r--r--src/tasks/updateCache.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts
index 05c7dc0..3f19091 100644
--- a/src/tasks/updateCache.ts
+++ b/src/tasks/updateCache.ts
@@ -1,7 +1,7 @@
import { BushClient } from '../lib/extensions/discord-akairo/BushClient';
import { BushTask } from '../lib/extensions/discord-akairo/BushTask';
import { Global } from '../lib/models/Global';
-import * as config from './../config/options';
+import config from './../config/options';
export class UpdateCacheTask extends BushTask {
public constructor() {
@@ -20,7 +20,7 @@ export class UpdateCacheTask extends BushTask {
}
private static async updateCache(client: BushClient): Promise<void> {
- const environment = config.dev ? 'development' : 'production';
+ const environment = config.environment;
const row =
(await Global.findByPk(environment)) ||
(await Global.create({