1
0
Fork 0

Fix sending out multiple websocket notifications

For some reason I encountered a strange bug which resulted in sending
out multiple websocket notifications for the exact same user.

Added a `distinct()` for the query to filter out multiple uuid's.
Dieser Commit ist enthalten in:
BlackDex 2023-03-31 18:01:55 +02:00
Ursprung 867c6ba056
Commit bff54fbfdb
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 58C80A2AA6C765E1
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -715,6 +715,7 @@ impl UserOrganization {
)
)
.select(users_organizations::all_columns)
.distinct()
.load::<UserOrganizationDb>(conn).expect("Error loading user organizations").from_db()
}}
}