Updaded api user return data

This commit is contained in:
Sergei Tsõganov 2022-07-07 13:45:20 +03:00
parent 363a9a7357
commit 7939c5065d
3 changed files with 3 additions and 2 deletions

View file

@ -74,6 +74,7 @@ class ApiUser < User
self.class.where(identity_code: identity_code)
.where("identity_code IS NOT NULL AND identity_code != ''")
.where.not(id: id)
.includes(:registrar)
end
def linked_with?(another_api_user)