No need to pay for deleted boats
All checks were successful
CI/CD Pipeline / test (push) Successful in 36m37s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

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)