This commit is contained in:
2025-12-13 11:14:18 +03:30
parent 3eb6b889a4
commit c25a5afe01
80 changed files with 440 additions and 190 deletions
@@ -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> {
};
}
}