lint
This commit is contained in:
@@ -37,11 +37,7 @@ export class ContactRepository extends EntityRepository<Contact> {
|
||||
|
||||
if (search) {
|
||||
const pattern = `%${search}%`;
|
||||
where.$or = [
|
||||
{ subject: { $ilike: pattern } },
|
||||
{ content: { $ilike: pattern } },
|
||||
{ phone: { $ilike: pattern } },
|
||||
];
|
||||
where.$or = [{ subject: { $ilike: pattern } }, { content: { $ilike: pattern } }, { phone: { $ilike: pattern } }];
|
||||
}
|
||||
|
||||
const [data, total] = await this.findAndCount(where, {
|
||||
@@ -63,4 +59,3 @@ export class ContactRepository extends EntityRepository<Contact> {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user