missed unresolved variable

This commit is contained in:
Igor Lobanov 2022-12-01 16:55:37 +01:00
parent 25924ac136
commit e0699d31c9

View File

@ -188,7 +188,7 @@ async def rate_user(_, info, rated_userslug, value):
session.commit()
return {}
try:
UserRating.create(rater=user.slug, user=rated_userslug, value=value)
UserRating.create(rater=auth.user_id, user=rated_userslug, value=value)
except Exception as err:
return {"error": err}
return {}