Skip to content
Snippets Groups Projects
Commit 215a7f19 authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Fix django autofetch

parent b3ca8feb
No related branches found
No related tags found
No related merge requests found
Pipeline #1962 passed
......@@ -30,8 +30,8 @@ def autofetch(sender, **kwargs):
else:
payload['auth_provider_uid'] = 'eq.{}'.format(kwargs['user'].sso_mapping.uuid)
with postgrestutils.conn() as c:
account = c.get('account', params=payload)
with postgrestutils.Session() as s:
account = s.get('account', params=payload)
user_account_fetched.send(sender=None, request=kwargs['request'], account=account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment