test-entity-library-asm 2.7.6 → 2.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -184,7 +184,7 @@ var CustomRepository = /** @class */ (function (_super) {
184
184
  // DOC: Filtro global
185
185
  if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
186
186
  globalValue = "%".concat(lazyEvent.filters['global'].value.toLowerCase(), "%");
187
- queryBuilder.andWhere('LOWER(local.name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue', {
187
+ queryBuilder.andWhere('LOWER(discount_code_user.local_name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue', {
188
188
  globalValue: globalValue ||
189
189
  (0, utils_1.getStatusBasic)(lazyEvent.filters['global'].value.toLowerCase()) ||
190
190
  (0, utils_1.getSeverityNameDiscountType)(lazyEvent.filters['global'].value.toLowerCase()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -171,7 +171,7 @@ export class CustomRepository<T extends ObjectLiteral> extends Repository<T> {
171
171
  if (lazyEvent.filters['global'] && lazyEvent.filters['global'].value) {
172
172
  const globalValue = `%${lazyEvent.filters['global'].value.toLowerCase()}%`
173
173
  queryBuilder.andWhere(
174
- 'LOWER(local.name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue',
174
+ 'LOWER(discount_code_user.local_name) LIKE :globalValue OR LOWER(partner_surname) LIKE :globalValue OR LOWER(discount_code_user.code) LIKE :globalValue OR LOWER(discount_code_user.discount) LIKE :globalValue OR LOWER(partner_name) LIKE :globalValue',
175
175
  {
176
176
  globalValue:
177
177
  globalValue ||