diff --git a/services/production/common/methods/fake-production/list.js b/services/production/common/methods/fake-production/list.js index fddb9c310..0ad582160 100644 --- a/services/production/common/methods/fake-production/list.js +++ b/services/production/common/methods/fake-production/list.js @@ -2,9 +2,6 @@ module.exports = function(Self) { Self.defineScope(); Self.list = function(ctx, filter, callback) { - var page = filter.page - 1; - var limit = filter.limit * page; - var offset = (page + 1) * filter.limit; let daysTickets = 0; let warehouseFk = filter.where.warehouseFk; delete filter.limit; @@ -80,7 +77,7 @@ module.exports = function(Self) { }, this); obj.m3 = obj.m3.toFixed(2); obj.total = tickets.length; - obj.tickets = tickets.slice(limit, offset); + obj.tickets = tickets; return obj; } };