mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 22:18:51 +00:00
Load firebase token when loading clients
This commit is contained in:
parent
1b3037e020
commit
f7554d44f5
@ -8,4 +8,5 @@ pub struct APIClient {
|
||||
pub domain: Option<String>,
|
||||
pub comment: Option<String>,
|
||||
pub default_expiration_time: u64,
|
||||
pub firebase_token: Option<String>,
|
||||
}
|
@ -30,5 +30,6 @@ fn db_to_client(res: &database::RowResult) -> Res<APIClient> {
|
||||
domain: res.get_optional_str("domain")?,
|
||||
comment: res.get_optional_str("comment")?,
|
||||
default_expiration_time: res.get_u64("default_expiration_time")?,
|
||||
firebase_token: res.get_optional_str("firebase_token")?,
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue
Block a user