From 800668f3e0fec80f3ba08f115d9563324bc54045 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 29 Aug 2022 19:53:53 -0400 Subject: deploy stuff --- lib/extensions/discord-akairo/TanzaniteClient.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/extensions') diff --git a/lib/extensions/discord-akairo/TanzaniteClient.ts b/lib/extensions/discord-akairo/TanzaniteClient.ts index 24ce962..fe34b58 100644 --- a/lib/extensions/discord-akairo/TanzaniteClient.ts +++ b/lib/extensions/discord-akairo/TanzaniteClient.ts @@ -347,13 +347,16 @@ export class TanzaniteClient extends AkairoClie logging: this.config.logging.db ? (sql) => this.logger.debug(sql) : false, timezone: 'America/New_York' }; + + const prefix = this.config.db.databasePrefix; + this.instanceDB = new Sequelize({ ...sharedDBOptions, - database: this.config.isDevelopment ? 'bushbot-dev' : this.config.isBeta ? 'bushbot-beta' : 'bushbot' + database: this.config.isDevelopment ? `${prefix}-dev` : this.config.isBeta ? `${prefix}-beta` : prefix }); this.sharedDB = new Sequelize({ ...sharedDBOptions, - database: 'bushbot-shared' + database: `${prefix}-shared` }); this.sentry = Sentry; -- cgit