Skip to content
Snippets Groups Projects
Unverified Commit ed20947e authored by Manu's avatar Manu Committed by GitHub
Browse files

Fix events without user in Bring integration (#140213)

Fix events without publicUserUuid
parent e4e476f8
No related branches found
No related tags found
No related merge requests found
......@@ -77,9 +77,12 @@ class BringEventEntity(BringBaseEntity, EventEntity):
attributes = asdict(activity.content)
attributes["last_activity_by"] = next(
x.name
for x in bring_list.users.users
if x.publicUuid == activity.content.publicUserUuid
(
x.name
for x in bring_list.users.users
if x.publicUuid == activity.content.publicUserUuid
),
None,
)
self._trigger_event(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment