2524 - Added search by socialName
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-10-26 08:13:13 +01:00
parent 866032b346
commit 5ba439d9bf
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export default class Client extends ModuleMain {
case 'search': case 'search':
return /^\d+$/.test(value) return /^\d+$/.test(value)
? {id: value} ? {id: value}
: {name: {like: `%${value}%`}}; : {or: [{name: {like: `%${value}%`}}, {socialName: {like: `%${value}%`}}]};
case 'phone': case 'phone':
return { return {
or: [ or: [