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 e3de18a commit 1fc600d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/users.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module PlaceOS::Api
lookup = params["id"]

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

# Index ordering to use for resolving the user.
ordering = if lookup.is_email?
Expand Down

0 comments on commit 1fc600d

Please sign in to comment.