Merge branch 'develop' into improve-login-errors

This commit is contained in:
Gleidson Daniel Silva 2024-02-26 09:37:51 -03:00 committed by GitHub
commit 4ff752e922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export const searchEmojis = async (keyword: string): Promise<IEmoji[]> => {
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