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

View File

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