mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-10 20:35:14 -05:00
refactor: remove depreciated repo call (#1370)
* ingredient parser hot fixes (float equality) * remove `get` in favor of `get_one` & `multi_query`
This commit is contained in:
@@ -59,7 +59,7 @@ class RegistrationService:
|
||||
|
||||
if self.repos.users.get_by_username(registration.username):
|
||||
raise HTTPException(status.HTTP_409_CONFLICT, {"message": self.t("exceptions.username-conflict-error")})
|
||||
elif self.repos.users.get(registration.email, "email"):
|
||||
elif self.repos.users.get_one(registration.email, "email"):
|
||||
raise HTTPException(status.HTTP_409_CONFLICT, {"message": self.t("exceptions.email-conflict-error")})
|
||||
|
||||
self.logger.info(f"Registering user {registration.username}")
|
||||
|
||||
Reference in New Issue
Block a user