update to sqlx 0.8

This commit is contained in:
2025-01-09 16:31:53 +01:00
parent 0dfceec737
commit f9c9f7c523
7 changed files with 135 additions and 206 deletions

View File

@ -3,8 +3,8 @@ use serde::Serialize;
#[derive(Debug, Serialize)]
pub struct Fee {
pub sum_in_cents: i32,
pub parts: Vec<(String, i32)>,
pub sum_in_cents: i64,
pub parts: Vec<(String, i64)>,
pub name: String,
pub user_ids: String,
pub paid: bool,
@ -29,7 +29,7 @@ impl Fee {
}
}
pub fn add(&mut self, desc: String, price_in_cents: i32) {
pub fn add(&mut self, desc: String, price_in_cents: i64) {
self.sum_in_cents += price_in_cents;
self.parts.push((desc, price_in_cents));