Compare commits
5 Commits
ec6c31848d
...
48e1ee0d4c
| Author | SHA1 | Date | |
|---|---|---|---|
| 48e1ee0d4c | |||
| a891fb4803 | |||
| c92c5526c3 | |||
| 5c1d8876be | |||
| e89c5c7439 |
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user