diff --git a/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js b/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js index df2d9ef29..26894f25d 100644 --- a/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js +++ b/modules/monitor/back/methods/sales-monitor/specs/ordersFilter.spec.js @@ -3,7 +3,7 @@ const app = require('vn-loopback/server/server'); describe('SalesMonitor ordersFilter()', () => { it('should return the orders activity', async() => { const ctx = {req: {accessToken: {userId: 18}}, args: {}}; - const filter = {order: 'dated DESC'}; + const filter = {order: 'date_make DESC'}; const result = await app.models.SalesMonitor.ordersFilter(ctx, filter); expect(result.length).toEqual(12);