Skip to content

Commit

Permalink
add comment noting the reason for the weird line
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Apr 13, 2022
1 parent a65cdad commit e3de18a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/placeos-rest-api/controllers/users.cr
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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
lookup = "user-#{lookup}" unless lookup.starts_with?("user-")

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

0 comments on commit e3de18a

Please sign in to comment.