exodus-framework 2.0.866 → 2.0.868

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 {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.reportRouter = void 0;
7
7
  var _express = require("express");
8
- var _log = _interopRequireDefault(require("../../../controllers/api/log"));
8
+ var _report = _interopRequireDefault(require("../../../controllers/api/report"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  //* Router
11
11
  const reportRouter = exports.reportRouter = (0, _express.Router)();
@@ -13,7 +13,7 @@ const reportRouter = exports.reportRouter = (0, _express.Router)();
13
13
  //* Middlewares
14
14
 
15
15
  //* Controllers
16
- const reportController = new _log.default();
16
+ const reportController = new _report.default();
17
17
 
18
18
  //* Definitions
19
19
  reportRouter.route('/list').post(reportController.list);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.866",
3
+ "version": "2.0.868",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",