From ac2deb9ae02d5157df9c7598a764c294344f4cd5 Mon Sep 17 00:00:00 2001 From: Howl Date: Sat, 19 Nov 2016 20:46:52 +0100 Subject: [PATCH] Return rank request status after requesting a beatmap --- app/v1/beatmap_requests.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/v1/beatmap_requests.go b/app/v1/beatmap_requests.go index 42d6c40..3019bef 100644 --- a/app/v1/beatmap_requests.go +++ b/app/v1/beatmap_requests.go @@ -146,7 +146,7 @@ func BeatmapRankRequestsSubmitPOST(md common.MethodData) common.CodeMessager { case nil: // we're returning a success because if the request was already sent in the past 24 // hours, it's as if the user submitted it. - return common.SimpleResponse(200, "Your request has been submitted.") + return BeatmapRankRequestsStatusGET(md) default: md.Err(err) return Err500 @@ -160,5 +160,5 @@ func BeatmapRankRequestsSubmitPOST(md common.MethodData) common.CodeMessager { return Err500 } - return common.SimpleResponse(200, "Your request has been submitted.") + return BeatmapRankRequestsStatusGET(md) }