#546 services/loopback/common/methods/ticket/list.js Backend unit tests

This commit is contained in:
Carlos Jimenez 2018-08-22 14:38:19 +02:00
parent 7d488217b5
commit 7a86beb16a
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
module.exports = function(Ticket) {
Ticket.remoteMethod('list', {
description: 'List tickets for production',
returns: {
arg: 'tickets',
type: 'object'
},
http: {
verb: 'get',
path: '/list'
}
});
Ticket.list = function(cb) {
var params = [1, 0];
var query = 'CALL production_control_source(?, ?)';
Ticket.rawSql(query, params, cb);
};
};