diff options
Diffstat (limited to 'src/lib/models/ModLog.ts')
-rw-r--r-- | src/lib/models/ModLog.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/models/ModLog.ts b/src/lib/models/ModLog.ts index a70913d..3675649 100644 --- a/src/lib/models/ModLog.ts +++ b/src/lib/models/ModLog.ts @@ -191,10 +191,10 @@ export class ModLog extends BaseModel<ModLogModel, ModLogModelCreationAttributes pseudo: { type: DataTypes.STRING, get: function (): boolean { - return jsonParseGet('pseudo', this); + return jsonParseGet.call(this, 'pseudo'); }, set: function (val: boolean) { - return jsonParseSet('pseudo', this, val); + return jsonParseSet.call(this, 'pseudo', val); }, allowNull: false, defaultValue: 'false' @@ -202,10 +202,10 @@ export class ModLog extends BaseModel<ModLogModel, ModLogModelCreationAttributes hidden: { type: DataTypes.STRING, get: function (): boolean { - return jsonParseGet('hidden', this); + return jsonParseGet.call(this, 'hidden'); }, set: function (val: boolean) { - return jsonParseSet('hidden', this, val); + return jsonParseSet.call(this, 'hidden', val); }, allowNull: false, defaultValue: 'false' |