feat: refs #5926 remove comments and others
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
c248372e50
commit
ef931f71a0
|
@ -4,7 +4,7 @@ const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethod('download', {
|
Self.remoteMethod('download', {
|
||||||
description: 'Download an docuware PDF',
|
description: 'Download a docuware PDF',
|
||||||
accessType: 'READ',
|
accessType: 'READ',
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ module.exports = Self => {
|
||||||
, myOptions);
|
, myOptions);
|
||||||
|
|
||||||
const signPda = await models.Worker.signPdaPdf(ctx,
|
const signPda = await models.Worker.signPdaPdf(ctx,
|
||||||
pdaId, workerFk
|
{pdaId, workerFk}
|
||||||
, myOptions);
|
, myOptions);
|
||||||
|
|
||||||
const configTemplate = {
|
const configTemplate = {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
const UserError = require('vn-loopback/util/user-error');
|
const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.rewriteDbError(function(err) {
|
Self.rewriteDbError(function(err) {
|
||||||
if (err.code === 'ER_DUP_ENTRY')
|
if (err.code === 'ER_DUP_ENTRY')
|
||||||
|
|
|
@ -7,10 +7,6 @@ module.exports = {
|
||||||
this.device = await this.findOneFromDef('device', [this.id]);
|
this.device = await this.findOneFromDef('device', [this.id]);
|
||||||
this.worker = await this.findOneFromDef('worker', [this.workerFk]);
|
this.worker = await this.findOneFromDef('worker', [this.workerFk]);
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
},
|
|
||||||
props: {
|
props: {
|
||||||
id: {
|
id: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|
Loading…
Reference in New Issue