fix(database): fetch all server emojis instead of one

This commit is contained in:
Bob Bobs authored and Paul Makles committed 2023-12-02 11:46:18 +00:00
1 parent db63ac4064
commit 25016efbc2
1 file changed
+2 -3
@@ -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