2 Commits

Author SHA1 Message Date
e90555214a Merge pull request 'No need to pay for deleted boats' (#1169) from handle-deleted-boats into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 19m20s
CI/CD Pipeline / deploy-staging (push) Successful in 26m29s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #1169
2026-01-03 14:04:39 +01:00
a891fb4803 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
2026-01-03 13:27:55 +01:00

View File

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