Skip to content

Commit

Permalink
Merge pull request #77 from Quaver/ranking-actions
Browse files Browse the repository at this point in the history
Use QuaverBot for ranking queue self-deny & resolve
  • Loading branch information
Swan authored Sep 14, 2024
2 parents f820b1e + 20150e7 commit b96bbb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions handlers/mapset_submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,11 +858,11 @@ func resolveMapsetInRankingQueue(user *db.User, mapset *db.Mapset) *APIError {
}

resolvedAction := &db.MapsetRankingQueueComment{
UserId: mapset.CreatorID,
UserId: db.QuaverBotId,
MapsetId: mapset.Id,
ActionType: db.RankingQueueActionResolved,
IsActive: true,
Comment: "I have just updated my mapset, and its status has been changed back to Resolved.",
Comment: "The creator has just updated their mapset, and its status has been changed back to Resolved.",
}

if err := resolvedAction.Insert(); err != nil {
Expand Down
4 changes: 2 additions & 2 deletions handlers/ranking.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ func RemoveFromRankingQueue(c *gin.Context) *APIError {
}

denyAction := &db.MapsetRankingQueueComment{
UserId: user.Id,
UserId: db.QuaverBotId,
MapsetId: queueMapset.MapsetId,
ActionType: db.RankingQueueActionDeny,
IsActive: true,
Comment: "I have just removed my own mapset from the ranking queue.",
Comment: "The creator has just removed their own mapset from the ranking queue.",
}

if err := denyAction.Insert(); err != nil {
Expand Down

0 comments on commit b96bbb3

Please sign in to comment.