From 6d437d0e2ef56e958815bc022309130abeee4f18 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 10 Mar 2020 11:46:58 +0100 Subject: [PATCH] Allow empty agency on ticket creation --- modules/ticket/back/methods/ticket/new.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ticket/back/methods/ticket/new.js b/modules/ticket/back/methods/ticket/new.js index db5310f7c..7c4b3adb4 100644 --- a/modules/ticket/back/methods/ticket/new.js +++ b/modules/ticket/back/methods/ticket/new.js @@ -6,7 +6,7 @@ module.exports = Self => { accessType: 'WRITE', accepts: [{ arg: 'clientId', - type: 'Number', + type: 'number', description: `The client id filter`, required: true }, @@ -22,29 +22,29 @@ module.exports = Self => { }, { arg: 'warehouseId', - type: 'Number', + type: 'number', description: `The warehouse id filter`, required: true }, { arg: 'companyId', - type: 'Number', + type: 'number', description: `The company id filter` }, { arg: 'addressId', - type: 'Number', + type: 'number', description: `The address id filter`, required: true }, { arg: 'agencyModeId', - type: 'Number', + type: 'any', description: `The agencyMode id filter` }, { arg: 'routeId', - type: 'Number', + type: 'number', description: `The route id filter` }], returns: {