Merge pull request 'handle-deleted-boats' (#1170) from handle-deleted-boats into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 18m25s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 28m8s

Reviewed-on: #1170
This commit was merged in pull request #1170.
This commit is contained in:
2026-01-03 14:18:37 +01:00

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)