Skip to content

Commit

Permalink
Wrap unclaimed API in proper response (#4444)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsolo committed Dec 8, 2022
1 parent 2700cc8 commit e8889a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion discovery-provider/src/api/v1/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,5 @@ class GetUnclaimedPlaylistId(Resource):
description="""Gets an unclaimed blockchain playlist ID""",
)
def get(self):
return get_unclaimed_id("playlist")
unclaimed_id = get_unclaimed_id("playlist")
return success_response(unclaimed_id)
3 changes: 2 additions & 1 deletion discovery-provider/src/api/v1/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,4 +1339,5 @@ class GetUnclaimedTrackId(Resource):
description="""Gets an unclaimed blockchain track ID""",
)
def get(self):
return get_unclaimed_id("track")
unclaimed_id = get_unclaimed_id("track")
return success_response(unclaimed_id)
3 changes: 2 additions & 1 deletion discovery-provider/src/api/v1/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,4 +1806,5 @@ class GetUnclaimedUserId(Resource):
description="""Gets an unclaimed blockchain user ID""",
)
def get(self):
return get_unclaimed_id("user")
unclaimed_id = get_unclaimed_id("user")
return success_response(unclaimed_id)

0 comments on commit e8889a4

Please sign in to comment.