diff --git a/app/lib/methods/emojis.ts b/app/lib/methods/emojis.ts index 6564470c4..15c742368 100644 --- a/app/lib/methods/emojis.ts +++ b/app/lib/methods/emojis.ts @@ -51,7 +51,7 @@ export const searchEmojis = async (keyword: string): Promise => { const likeString = sanitizeLikeString(keyword); const whereClause = []; if (likeString) { - whereClause.push(Q.where('name', Q.like(`${likeString}%`))); + whereClause.push(Q.where('name', Q.like(`%${likeString}%`))); } const db = database.active; const customEmojisCollection = await db