diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 19:42:10 +0000 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 19:42:10 +0000 |
commit | bada2976eed34a2530bc09683d2de17c71c744a8 (patch) | |
tree | fe459cebb005dd90d1ae7ed3269a77248f780499 /src/lib/models/ActivePunishment.ts | |
parent | aaef32128f8c8c30254836932805d0745647c646 (diff) | |
download | tanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.tar.gz tanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.tar.bz2 tanzanite-bada2976eed34a2530bc09683d2de17c71c744a8.zip |
some fixes + some more error stuff
Diffstat (limited to 'src/lib/models/ActivePunishment.ts')
-rw-r--r-- | src/lib/models/ActivePunishment.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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' |