1
0

Use get_device

This commit is contained in:
Olivier Wilkinson (reivilibre)
2021-12-13 14:35:34 +00:00
parent 075a2b7a5d
commit 15cb2f0678

View File

@@ -346,7 +346,7 @@ class Auth:
effective_device_id = request.args[DEVICE_ID_ARG_NAME][0].decode("utf8")
# We only just set this so it can't be None!
assert effective_device_id is not None
device_opt = await self.store.get_device_opt(
device_opt = await self.store.get_device(
effective_user_id, effective_device_id
)
if device_opt is None: