From c486d655de34c0827ef2614733af289be5139bc3 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 18 Jul 2021 23:11:17 -0400 Subject: actually imprt fetch --- src/lib/models/Global.ts | 10 +++++----- src/lib/models/Guild.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/lib') diff --git a/src/lib/models/Global.ts b/src/lib/models/Global.ts index ee9f43c..e37ef2b 100644 --- a/src/lib/models/Global.ts +++ b/src/lib/models/Global.ts @@ -53,7 +53,7 @@ export class Global extends BaseModel i defaultValue: client.config.prefix }, autoPublishChannels: { - type: DataTypes.STRING, + type: DataTypes.TEXT, get: function () { return JSON.parse(this.getDataValue('autoPublishChannels') as unknown as string); }, @@ -65,7 +65,7 @@ export class Guild extends BaseModel i defaultValue: '[]' }, blacklistedChannels: { - type: DataTypes.STRING, + type: DataTypes.TEXT, get: function () { return JSON.parse(this.getDataValue('blacklistedChannels') as unknown as string); }, @@ -76,7 +76,7 @@ export class Guild extends BaseModel i defaultValue: '[]' }, blacklistedUsers: { - type: DataTypes.STRING, + type: DataTypes.TEXT, get: function () { return JSON.parse(this.getDataValue('blacklistedUsers') as unknown as string); }, @@ -99,7 +99,7 @@ export class Guild extends BaseModel i allowNull: true }, disabledCommands: { - type: DataTypes.STRING, + type: DataTypes.TEXT, get: function () { return JSON.parse(this.getDataValue('disabledCommands') as unknown as string); }, @@ -110,7 +110,7 @@ export class Guild extends BaseModel i defaultValue: '[]' }, lockdownChannels: { - type: DataTypes.STRING, + type: DataTypes.TEXT, get: function () { return JSON.parse(this.getDataValue('lockdownChannels') as unknown as string); }, -- cgit