Quellcode durchsuchen

fix: Account.query => db.session.query(Account) (#17667)

tags/1.2.0
crazywoola vor 6 Monaten
Ursprung
Commit
eb8584613b
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      api/controllers/service_api/wraps.py

+ 1
- 1
api/controllers/service_api/wraps.py Datei anzeigen

@@ -69,7 +69,7 @@ def validate_app_token(view: Optional[Callable] = None, *, fetch_user_arg: Optio
) # TODO: only owner information is required, so only one is returned.
if tenant_account_join:
tenant, ta = tenant_account_join
account = Account.query.filter_by(id=ta.account_id).first()
account = db.session.query(Account).filter(Account.id == ta.account_id).first()
# Login admin
if account:
account.current_tenant = tenant

Laden…
Abbrechen
Speichern