exodus-framework 2.0.866 → 2.0.867

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/controllers/api/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAa,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAqB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAuCtD;CACH;AACD,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/controllers/api/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAa,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAqB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAuCtD;CACH;AACD,eAAe,gBAAgB,CAAC"}
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _app = require("../../app");
8
- var _Log = require("../../models/Log");
9
8
  var _services = require("../../services");
10
9
  var _utils = require("../../utils");
10
+ var _Report = require("../../models/Report");
11
11
  class ReportController extends _app.HttpController {
12
12
  list = async (req, res) => {
13
13
  const {
@@ -15,11 +15,11 @@ class ReportController extends _app.HttpController {
15
15
  filters = {},
16
16
  limit = 10,
17
17
  order = 'ASC',
18
- orderBy = 'happenedAt'
18
+ orderBy = 'category'
19
19
  } = req.body;
20
20
  const offset = (Number(page) - 1) * Number(limit);
21
21
  try {
22
- const Entity = await _services.SequelizeService.singleton().getModel(_Log.Log, req.tenant.id);
22
+ const Entity = await _services.SequelizeService.singleton().getModel(_Report.Report, req.tenant.id);
23
23
  /* filters */
24
24
  const where = (0, _utils.processFilters)(filters);
25
25
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.866",
3
+ "version": "2.0.867",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",