Skip to content

Commit

Permalink
fix: get all devices api
Browse files Browse the repository at this point in the history
  • Loading branch information
Huy-DNA committed May 15, 2024
1 parent df55c1f commit 18e0352
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ async fn handler(
if let Ok(mut device_cursor) = device_coll
.find(
doc! { "owner_name": email.clone() },
FindOptions::builder()
.projection(doc! { "id": 1, "components.id": 1 })
.build(),
None,
)
.await
{
Expand Down

0 comments on commit 18e0352

Please sign in to comment.