Fix nginx/certificates search query

This commit is contained in:
Ivan Kristianto 2022-02-12 12:46:06 +07:00
parent 29c0fcbad6
commit 366fcf0bed

View File

@ -477,7 +477,7 @@ const internalCertificate = {
// Query is used for searching // Query is used for searching
if (typeof search_query === 'string') { if (typeof search_query === 'string') {
query.where(function () { query.where(function () {
this.where('name', 'like', '%' + search_query + '%'); this.where('nice_name', 'like', '%' + search_query + '%');
}); });
} }