diff --git a/modules/ticket/back/methods/ticket/itemLack.js b/modules/ticket/back/methods/ticket/itemLack.js index b11ae74d1..163addc04 100644 --- a/modules/ticket/back/methods/ticket/itemLack.js +++ b/modules/ticket/back/methods/ticket/itemLack.js @@ -1,6 +1,6 @@ module.exports = Self => { Self.remoteMethod('itemLack', { - description: 'Download a ticket delivery note document', + description: 'Get tickets as negative status', accessType: 'READ', accepts: [ { @@ -8,12 +8,6 @@ module.exports = Self => { type: 'object', http: {source: 'context'} }, - { - arg: 'filter', - type: 'object', - description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string', - http: {source: 'query'} - }, { arg: 'id', type: 'number', @@ -68,7 +62,7 @@ module.exports = Self => { } }); - Self.itemLack = async(ctx, filter, options) => { + Self.itemLack = async(ctx, options) => { const myOptions = {}; if (typeof options == 'object') Object.assign(myOptions, options); diff --git a/modules/ticket/back/methods/ticket/negativeOrigin.js b/modules/ticket/back/methods/ticket/negativeOrigin.js index 0324d72bc..aa043b0f3 100644 --- a/modules/ticket/back/methods/ticket/negativeOrigin.js +++ b/modules/ticket/back/methods/ticket/negativeOrigin.js @@ -2,7 +2,7 @@ const {ParameterizedSQL} = require('loopback-connector'); module.exports = Self => { Self.remoteMethod('negativeOrigin', { - description: 'Insert ticket negative into negativeOrigin', + description: 'Get tickets from negativeOrigin', accessType: 'READ', accepts: [{ arg: 'ctx', diff --git a/modules/ticket/back/methods/ticket/split.js b/modules/ticket/back/methods/ticket/split.js index afe374aa2..69f6f56d9 100644 --- a/modules/ticket/back/methods/ticket/split.js +++ b/modules/ticket/back/methods/ticket/split.js @@ -1,6 +1,6 @@ module.exports = Self => { Self.remoteMethodCtx('split', { - description: 'Split a ticket or n tickets', + description: 'Split n tickets', accessType: 'WRITE', accepts: [ {