mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-04-29 06:37:57 -04:00
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.
This commit is contained in:
parent
867c6ba056
commit
bff54fbfdb
@ -715,6 +715,7 @@ impl UserOrganization {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.select(users_organizations::all_columns)
|
.select(users_organizations::all_columns)
|
||||||
|
.distinct()
|
||||||
.load::<UserOrganizationDb>(conn).expect("Error loading user organizations").from_db()
|
.load::<UserOrganizationDb>(conn).expect("Error loading user organizations").from_db()
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user