No need to pay for deleted boats

This commit is contained in:
2026-01-03 13:27:55 +01:00
parent c92c5526c3
commit a891fb4803

View File

@@ -136,7 +136,7 @@ impl User {
pub async fn amount_boats(&self, db: &SqlitePool) -> i64 {
sqlx::query!(
"SELECT COUNT(*) as count FROM boat WHERE owner = ?",
"SELECT COUNT(*) as count FROM boat WHERE owner = ? and deleted = 0",
self.id
)
.fetch_one(db)