Skip to content

Commit

Permalink
Update src/placeos-rest-api/controllers/users.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Caspian Baska <[email protected]>
  • Loading branch information
stakach and caspiano authored Apr 13, 2022
1 parent 1fc600d commit 7f00c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/placeos-rest-api/controllers/users.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ module PlaceOS::Api
getter user : Model::User do
lookup = params["id"]

# NOTE:: remove after June 2023, added to help with 2022 user id migration
# TODO: Remove user id query prefixing.
# Remove after June 2023, added to help with 2022 user id migration
lookup = "#{Model::User.table_name}-#{lookup}" unless lookup.starts_with?("#{Model::User.table_name}-")

# Index ordering to use for resolving the user.
Expand Down

0 comments on commit 7f00c95

Please sign in to comment.