diff --git a/src/endpoints/admin/quest_boost/create_boost.rs b/src/endpoints/admin/quest_boost/create_boost.rs index c79ed93..c43caf1 100644 --- a/src/endpoints/admin/quest_boost/create_boost.rs +++ b/src/endpoints/admin/quest_boost/create_boost.rs @@ -18,8 +18,8 @@ use std::sync::Arc; pub struct CreateBoostQuery { amount: i32, token: String, - num_of_winners: i64, - token_decimals: i64, + num_of_winners: i32, + token_decimals: i32, name: String, quest_id: i32, hidden: bool, diff --git a/src/endpoints/admin/quest_boost/update_boost.rs b/src/endpoints/admin/quest_boost/update_boost.rs index ab259f3..85e3502 100644 --- a/src/endpoints/admin/quest_boost/update_boost.rs +++ b/src/endpoints/admin/quest_boost/update_boost.rs @@ -18,8 +18,8 @@ pub_struct!(Deserialize; UpdateBoostQuery { id: i32, amount: Option, token: Option, - num_of_winners: Option, - token_decimals: Option, + num_of_winners: Option, + token_decimals: Option, expiry: Option, name: Option, img_url: Option, diff --git a/src/models.rs b/src/models.rs index 9cdf373..7a9f691 100644 --- a/src/models.rs +++ b/src/models.rs @@ -280,8 +280,8 @@ pub_struct!(Debug, Serialize, Deserialize; BoostTable { img_url: String, name: String, hidden: bool, - num_of_winners: i64, - token_decimals: i64, + num_of_winners: i32, + token_decimals: i32, }); pub_struct!(Debug, Serialize, Deserialize; NftBalance { @@ -369,8 +369,8 @@ pub_struct!(Deserialize; CreateBoostQuery { quest_id: i32, amount: i32, token: String, - num_of_winners: i64, - token_decimals: i64, + num_of_winners: i32, + token_decimals: i32, name: String, img_url: String, expiry: i64,