From ef931f71a08b808cd7c8d8274cdf7a827b9bf9a8 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 12 Jul 2024 23:14:12 +0200 Subject: [PATCH] feat: refs #5926 remove comments and others --- back/methods/docuware/download.js | 2 +- modules/worker/back/methods/worker/docuwareUpload.js | 2 +- modules/worker/back/models/device-production-user.js | 1 - print/templates/reports/sign-pda/sign-pda.js | 4 ---- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/back/methods/docuware/download.js b/back/methods/docuware/download.js index 83f3ba919..9bf6b9db9 100644 --- a/back/methods/docuware/download.js +++ b/back/methods/docuware/download.js @@ -4,7 +4,7 @@ const UserError = require('vn-loopback/util/user-error'); module.exports = Self => { Self.remoteMethod('download', { - description: 'Download an docuware PDF', + description: 'Download a docuware PDF', accessType: 'READ', accepts: [ { diff --git a/modules/worker/back/methods/worker/docuwareUpload.js b/modules/worker/back/methods/worker/docuwareUpload.js index 0aebb3870..6cd94d947 100644 --- a/modules/worker/back/methods/worker/docuwareUpload.js +++ b/modules/worker/back/methods/worker/docuwareUpload.js @@ -18,7 +18,7 @@ module.exports = Self => { , myOptions); const signPda = await models.Worker.signPdaPdf(ctx, - pdaId, workerFk + {pdaId, workerFk} , myOptions); const configTemplate = { diff --git a/modules/worker/back/models/device-production-user.js b/modules/worker/back/models/device-production-user.js index d1b7b0187..8eead58e0 100644 --- a/modules/worker/back/models/device-production-user.js +++ b/modules/worker/back/models/device-production-user.js @@ -1,5 +1,4 @@ const UserError = require('vn-loopback/util/user-error'); - module.exports = Self => { Self.rewriteDbError(function(err) { if (err.code === 'ER_DUP_ENTRY') diff --git a/print/templates/reports/sign-pda/sign-pda.js b/print/templates/reports/sign-pda/sign-pda.js index 8c2872b99..69c5d3f04 100755 --- a/print/templates/reports/sign-pda/sign-pda.js +++ b/print/templates/reports/sign-pda/sign-pda.js @@ -7,10 +7,6 @@ module.exports = { this.device = await this.findOneFromDef('device', [this.id]); this.worker = await this.findOneFromDef('worker', [this.workerFk]); }, - computed: { - }, - methods: { - }, props: { id: { type: Number,