Skip to content

Commit

Permalink
Deactivate previous ranking queue actions on resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Aug 10, 2024
1 parent 56a395a commit dcb5198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/mapset_submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ func resolveMapsetInRankingQueue(user *db.User, mapset *db.Mapset) *APIError {
return nil
}

if err := db.DeactivateRankingQueueActions(mapset.Id); err != nil {
return APIErrorServerError("Error deactivating ranking queue actions", err)
}

resolvedAction := &db.MapsetRankingQueueComment{
UserId: mapset.CreatorID,
MapsetId: mapset.Id,
Expand Down

0 comments on commit dcb5198

Please sign in to comment.