Skip to content

Commit

Permalink
fix(database): fetch all server emojis instead of one
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBobBobs authored and insertish committed Dec 2, 2023
1 parent db63ac4 commit 25016ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/core/database/src/models/emojis/ops/mongodb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ impl AbstractEmojis for MongoDb {
async fn fetch_emoji_by_parent_id(&self, parent_id: &str) -> Result<Vec<Emoji>> {
query!(
self,
find_one,
find,
COL,
doc! {
"parent.id": parent_id
}
)?
.ok_or_else(|| create_error!(NotFound))
)
}

/// Fetch emoji by their parent ids
Expand Down

0 comments on commit 25016ef

Please sign in to comment.