Skip to content

Commit

Permalink
do not approve mod upon edit approval
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeraphinx committed Jan 12, 2025
1 parent cac5b66 commit 00c2346
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/shared/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,12 @@ export class EditQueue extends Model<InferAttributes<EditQueue>, InferCreationAt
modVersion.platform = this.object.platform || modVersion.platform;
modVersion.supportedGameVersionIds = this.object.supportedGameVersionIds || modVersion.supportedGameVersionIds;
modVersion.dependencies = this.object.dependencies || modVersion.dependencies;
modVersion.lastApprovedById = approver.id;
//modVersion.lastApprovedById = approver.id;
modVersion.lastUpdatedById = this.submitterId;
modVersion.status = Status.Verified;
//modVersion.status = Status.Verified;
if (modVersion.status == Status.Verified) {
modVersion.lastApprovedById = approver.id;
}
record = await modVersion.save();
}
} else if (this.objectTableName == `mods` && `name` in this.object) {
Expand All @@ -1136,9 +1139,12 @@ export class EditQueue extends Model<InferAttributes<EditQueue>, InferCreationAt
mod.gitUrl = this.object.gitUrl || mod.gitUrl;
mod.authorIds = this.object.authorIds || mod.authorIds;
mod.gameName = this.object.gameName || mod.gameName;
mod.lastApprovedById = approver.id;
//mod.lastApprovedById = approver.id;
mod.lastUpdatedById = this.submitterId;
mod.status = Status.Verified;
//mod.status = Status.Verified;
if (mod.status == Status.Verified) {
mod.lastApprovedById = approver.id;
}
record = await mod.save();
}
}
Expand Down

0 comments on commit 00c2346

Please sign in to comment.