aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/ActivePunishment.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/ActivePunishment.ts')
-rw-r--r--src/lib/models/ActivePunishment.ts4
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'