changed wrong descriptions

This commit is contained in:
Gerard 2019-03-25 16:30:40 +01:00
parent 2c7b9968eb
commit f31be20bd3
2 changed files with 11 additions and 5 deletions

View File

@ -1,12 +1,12 @@
module.exports = Self => {
Self.remoteMethod('getTickets', {
description: 'Updates the item taxes',
description: 'Return the tickets information displayed on the route module',
accessType: 'READ',
accepts: [{
arg: 'id',
type: 'number',
required: true,
description: 'The item id',
description: 'The route id',
http: {source: 'path'}
}],
returns: {
@ -52,7 +52,13 @@ module.exports = Self => {
scope: {
where: {observationTypeFk: 3}
}
}
},
{
relation: 'address',
scope: {
fields: ['id', 'street', 'postcode', 'city'],
}
},
]
}

View File

@ -1,12 +1,12 @@
module.exports = Self => {
Self.remoteMethod('summary', {
description: 'Updates the item taxes',
description: 'Returns the information of a route showed in the route summary',
accessType: 'READ',
accepts: [{
arg: 'id',
type: 'number',
required: true,
description: 'The item id',
description: 'The route id',
http: {source: 'path'}
}],
returns: {