Skip to content

Commit

Permalink
set lastApprovedById on approval
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeraphinx committed Jan 12, 2025
1 parent 3a87a4c commit cac5b66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ export class Mod extends Model<InferAttributes<Mod>, InferCreationAttributes<Mod
sendModLog(this, user, `New`);
break;
case Status.Verified:
this.lastApprovedById = user.id;
sendModLog(this, user, `Approved`);
break;
case Status.Removed:
Expand Down Expand Up @@ -945,6 +946,7 @@ export class ModVersion extends Model<InferAttributes<ModVersion>, InferCreation
sendModVersionLog(this, user, `New`);
break;
case Status.Verified:
this.lastApprovedById = user.id;
sendModVersionLog(this, user, `Approved`);
break;
case Status.Removed:
Expand Down

0 comments on commit cac5b66

Please sign in to comment.