diff --git a/src/pages/Customer/Card/CustomerNotes.vue b/src/pages/Customer/Card/CustomerNotes.vue index 95c3befe8..0909758f3 100644 --- a/src/pages/Customer/Card/CustomerNotes.vue +++ b/src/pages/Customer/Card/CustomerNotes.vue @@ -6,40 +6,6 @@ import { date } from 'quasar'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; -const response = { - fields: [ - 'id', - 'originFk', - 'userFk', - 'action', - 'changedModel', - 'oldInstance', - 'newInstance', - 'creationDate', - 'changedModel', - 'changedModelId', - 'changedModelValue', - 'description', - ], - include: [ - { - relation: 'user', - scope: { - fields: ['nickname', 'name', 'image'], - include: { relation: 'worker', scope: { fields: ['id'] } }, - }, - }, - ], - order: ['creationDate DESC', 'id DESC'], - limit: 20, - where: { - and: [ - { originFk: '1' }, - { userFk: { neq: null } }, - { action: { inq: ['insert', 'update', 'delete', 'select'] } }, - ], - }, -}; const { t } = useI18n(); const route = useRoute(); const router = useRouter(); diff --git a/src/pages/Customer/Card/CustomerRecoveries.vue b/src/pages/Customer/Card/CustomerRecoveries.vue index df5c7f6e2..7247145f2 100644 --- a/src/pages/Customer/Card/CustomerRecoveries.vue +++ b/src/pages/Customer/Card/CustomerRecoveries.vue @@ -11,39 +11,6 @@ import { toCurrency } from 'src/filters'; import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; -const response = { - fields: [ - 'id', - 'originFk', - 'userFk', - 'action', - 'changedModel', - 'oldInstance', - 'newInstance', - 'creationDate', - 'changedModel', - 'changedModelId', - 'changedModelValue', - 'description', - ], - include: [ - { - relation: 'user', - scope: { - fields: ['nickname', 'name', 'image'], - include: { relation: 'worker', scope: { fields: ['id'] } }, - }, - }, - ], - order: ['creationDate DESC', 'id DESC'], - limit: 20, - where: { - and: [ - { originFk: '1' }, - { action: { inq: ['insert', 'update', 'delete', 'select'] } }, - ], - }, -}; const { t } = useI18n(); const route = useRoute(); const router = useRouter();