aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Guild.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 18:27:29 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 18:27:29 -0400
commit2e539511a49ff993eded39751a2e768315ee4ff6 (patch)
tree32f0f1f512e87f2c0a9e4aa9db60fe2a349b1a71 /src/lib/models/Guild.ts
parent1d9691083645fac0389ec98adfa66c99f75d58ad (diff)
downloadtanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.gz
tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.bz2
tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.zip
some fixes
Diffstat (limited to 'src/lib/models/Guild.ts')
-rw-r--r--src/lib/models/Guild.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/models/Guild.ts b/src/lib/models/Guild.ts
index 4640d70..41ded9d 100644
--- a/src/lib/models/Guild.ts
+++ b/src/lib/models/Guild.ts
@@ -285,10 +285,10 @@ export class Guild extends BaseModel<GuildModel, GuildModelCreationAttributes> i
joinRoles: {
type: DataTypes.TEXT,
get: function () {
- return JSON.parse(this.getDataValue('enabledFeatures') as unknown as string);
+ return JSON.parse(this.getDataValue('joinRoles') as unknown as string);
},
set: function (val: string[]) {
- return this.setDataValue('enabledFeatures', JSON.stringify(val) as unknown as string[]);
+ return this.setDataValue('joinRoles', JSON.stringify(val) as unknown as string[]);
},
allowNull: false,
defaultValue: '[]'