From bada2976eed34a2530bc09683d2de17c71c744a8 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 30 Aug 2021 19:42:10 +0000 Subject: some fixes + some more error stuff --- src/lib/models/ActivePunishment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/models') diff --git a/src/lib/models/ActivePunishment.ts b/src/lib/models/ActivePunishment.ts index 10ae766..794560f 100644 --- a/src/lib/models/ActivePunishment.ts +++ b/src/lib/models/ActivePunishment.ts @@ -26,7 +26,7 @@ export interface ActivePunishmentModelCreationAttributes { guild: Snowflake; extraInfo?: Snowflake; expires?: Date; - modlog: string; + modlog?: string; } const NEVER_USED = 'This should never be executed'; @@ -140,7 +140,7 @@ export class ActivePunishment }, modlog: { type: DataTypes.STRING, - allowNull: false, + allowNull: true, references: { model: 'ModLogs', key: 'id' -- cgit