Skip to content

Commit

Permalink
Merge pull request #312 from hannahredler/issue-311/fix-boost-field-t…
Browse files Browse the repository at this point in the history
…ypes

[fix] Fix boost field types
  • Loading branch information
Marchand-Nicolas authored Nov 1, 2024
2 parents 6fa329f + c7db98b commit d9ab819
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/admin/quest_boost/create_boost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/admin/quest_boost/update_boost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub_struct!(Deserialize; UpdateBoostQuery {
id: i32,
amount: Option<i32>,
token: Option<String>,
num_of_winners: Option<i64>,
token_decimals: Option<i64>,
num_of_winners: Option<i32>,
token_decimals: Option<i32>,
expiry: Option<i64>,
name: Option<String>,
img_url: Option<String>,
Expand Down
8 changes: 4 additions & 4 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d9ab819

Please sign in to comment.