Fixed broken query
This commit is contained in:
parent
5f776771d1
commit
6c520b8b0b
1 changed files with 2 additions and 1 deletions
|
@ -2038,7 +2038,8 @@ def confirm_email_authorization_for_repo(code):
|
||||||
.select(RepositoryAuthorizedEmail, Repository, Namespace)
|
.select(RepositoryAuthorizedEmail, Repository, Namespace)
|
||||||
.join(Repository)
|
.join(Repository)
|
||||||
.join(Namespace, on=(Repository.namespace_user == Namespace.id))
|
.join(Namespace, on=(Repository.namespace_user == Namespace.id))
|
||||||
.get(RepositoryAuthorizedEmail.code == code))
|
.where(RepositoryAuthorizedEmail.code == code)
|
||||||
|
.get())
|
||||||
except RepositoryAuthorizedEmail.DoesNotExist:
|
except RepositoryAuthorizedEmail.DoesNotExist:
|
||||||
raise DataModelException('Invalid confirmation code.')
|
raise DataModelException('Invalid confirmation code.')
|
||||||
|
|
||||||
|
|
Reference in a new issue