From 1e9e334097702c68d871365fc016aa096d03c491 Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> Date: Fri, 28 May 2021 21:51:02 -0600 Subject: Remove references - caused some issues, comment out some image gen code --- src/lib/models/Ban.ts | 9 +++++---- src/lib/models/Modlog.ts | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'src/lib/models') diff --git a/src/lib/models/Ban.ts b/src/lib/models/Ban.ts index 3ce9c06..ab7b38d 100644 --- a/src/lib/models/Ban.ts +++ b/src/lib/models/Ban.ts @@ -80,10 +80,11 @@ export class Ban }, modlog: { type: DataTypes.STRING, - allowNull: false, - references: { - model: Models.Modlog - } + allowNull: false + // references: { + // model: Models.Modlog, + // key: 'id' + // } } }, { sequelize: sequelize } diff --git a/src/lib/models/Modlog.ts b/src/lib/models/Modlog.ts index 7efeeed..7e24ba6 100644 --- a/src/lib/models/Modlog.ts +++ b/src/lib/models/Modlog.ts @@ -81,10 +81,11 @@ export class Modlog allowNull: true }, guild: { - type: DataTypes.STRING, - references: { - model: Models.Guild - } + type: DataTypes.STRING + // references: { + // model: Models.Guild, + // key: 'id' + // } } }, { sequelize: sequelize } -- cgit