Skip to content

Commit 0c91e0a

Browse files
committed
enforce soft delete when getting specialist
1 parent f9701ed commit 0c91e0a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/specialists/service.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ pub fn get_specialists(
204204
}
205205

206206
let rows = query
207+
.filter(users::deleted_at.is_null())
207208
.select((Specialist::as_select(), User::as_select()))
208209
.load::<(Specialist, User)>(conn)?;
209210

0 commit comments

Comments
 (0)