1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-10 01:22:48 +00:00

Can get the list of keys of an admin

This commit is contained in:
2021-05-14 13:34:13 +02:00
parent 3c4a5a53a1
commit 22b3a73db3
6 changed files with 44 additions and 8 deletions

View File

@ -33,6 +33,7 @@ fn db_to_admin_key(row: &database::RowResult) -> Res<AdminKey> {
id: row.get_u64("id")?,
admin_id: row.get_admin_id("admin_id")?,
name: row.get_str("name")?,
time_add: row.get_u64("time_add")?,
key: serde_json::from_str(&row.get_str("credential")?)?,
})
}