From 89e544009faaf8e40c6b3983ccd6102b88d4fb47 Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Sun, 13 May 2018 13:20:00 +0100 Subject: [PATCH] Fix duplicate ciphers returned from find_by_user --- src/db/models/cipher.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs index a47549f..24255c1 100644 --- a/src/db/models/cipher.rs +++ b/src/db/models/cipher.rs @@ -243,6 +243,7 @@ impl Cipher { ) )) .select(ciphers::all_columns) + .distinct() .load::(&**conn).expect("Error loading ciphers") }