From f7554d44f51075feda05c7aaf7646743e2bffff3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 11 Apr 2021 15:07:10 +0200 Subject: [PATCH] Load firebase token when loading clients --- src/data/api_client.rs | 1 + src/helpers/api_helper.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/data/api_client.rs b/src/data/api_client.rs index ef9afe6..add0af3 100644 --- a/src/data/api_client.rs +++ b/src/data/api_client.rs @@ -8,4 +8,5 @@ pub struct APIClient { pub domain: Option, pub comment: Option, pub default_expiration_time: u64, + pub firebase_token: Option, } \ No newline at end of file diff --git a/src/helpers/api_helper.rs b/src/helpers/api_helper.rs index 7d7ab8e..5fbaca6 100644 --- a/src/helpers/api_helper.rs +++ b/src/helpers/api_helper.rs @@ -30,5 +30,6 @@ fn db_to_client(res: &database::RowResult) -> Res { 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")?, }) } \ No newline at end of file