mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 04:48:37 +02:00
Implement suggested improvements
This commit is contained in:
1 parent
c3be1b4298
commit
a0796acbc7
5 files changed
+7
-8
No files matched your search
@@ -222,10 +222,10 @@ impl UserOrganization {
|
||||
.first::<Self>(&**conn).ok()
|
||||
}
|
||||
|
||||
pub fn find_by_user(user_uuid: &str, conn: &DbConn) -> Option<Vec<Self>> {
|
||||
pub fn find_by_user(user_uuid: &str, conn: &DbConn) -> Vec<Self> {
|
||||
users_organizations::table
|
||||
.filter(users_organizations::user_uuid.eq(user_uuid))
|
||||
.load::<Self>(&**conn).ok()
|
||||
.load::<Self>(&**conn).unwrap_or(vec![])
|
||||
}
|
||||
|
||||
pub fn find_by_org(org_uuid: &str, conn: &DbConn) -> Vec<Self> {
|
||||
|
||||
Reference in new issue
Block a user