Fix order of args in biome update_key operation
Updates the `KeyStoreUpdateKeyOperation::update_key` method to switch
the order of the `public_key` and `user_id` arguments. These are in the
reverse order of the `KeyStore::update_key` method, which led to the
arguments being switched in usage.
@@ -21,8 +21,8 @@ use diesel::prelude::*;
pub(in crate::biome::key_management) trait KeyStoreUpdateKeyOperation {
fn update_key(
&self,
- user_id: &str,
public_key: &str,
+ user_id: &str,
display_name: &str,
) -> Result<(), KeyStoreError>;
}
@@ -34,8 +34,8 @@ where
{
fn update_key(
&self,
- user_id: &str,
public_key: &str,
+ user_id: &str,
display_name: &str,
) -> Result<(), KeyStoreError> {
match diesel::update(keys::table.find((public_key, user_id)))
