2524 - Added search by socialName
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
866032b346
commit
5ba439d9bf
|
@ -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: [
|
||||||
|
|
Loading…
Reference in New Issue