Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
7f6f99dc49
|
@ -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);
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue