Commit 7f04ae79 authored by Ovv's avatar Ovv

Save user after updating it

parent eeef8a6f
Pipeline #8076011 passed with stages
in 3 minutes and 46 seconds
......@@ -136,6 +136,7 @@ class SlackUserManager:
last_update=time.time(),
dm_id=data['dm_id']
)
self.add(user)
elif data:
user = User(
id_=id_,
......@@ -143,7 +144,6 @@ class SlackUserManager:
dm_id=data['dm_id'],
last_update=data['last_update']
)
else:
raw = await self._client.get_user_info(id_)
user = User(
......@@ -151,7 +151,7 @@ class SlackUserManager:
raw=raw,
last_update=time.time()
)
self.add(user)
if dm:
self.ensure_dm(user, db)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment