exodus-framework 2.0.9982 → 2.0.9984
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.
package/lib/contracts/log.d.ts
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
export type DBLogData = {
|
2
|
+
category: string;
|
3
|
+
origin: string;
|
4
|
+
action: string;
|
5
|
+
comments?: string;
|
6
|
+
data?: Record<string, any>;
|
7
|
+
params?: Record<string, any>;
|
8
|
+
};
|
4
9
|
//# sourceMappingURL=log.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/contracts/log.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/contracts/log.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC"}
|
package/lib/services/log.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/services/log.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/services/log.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,cAAM,UAAW,SAAQ,OAAO;IACjB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;CAcxD;AAED,eAAe,UAAU,CAAC"}
|
package/lib/services/log.js
CHANGED
@@ -8,8 +8,9 @@ var _dateFns = require("date-fns");
|
|
8
8
|
var _app = require("../app");
|
9
9
|
var _Log = require("../models/Log");
|
10
10
|
var _database = _interopRequireDefault(require("./database"));
|
11
|
+
var _service = _interopRequireDefault(require("../app/classes/service"));
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
12
|
-
class LogService {
|
13
|
+
class LogService extends _service.default {
|
13
14
|
async register(tenantId, data) {
|
14
15
|
try {
|
15
16
|
const eLog = await _database.default.getService().getEntity(_Log.Log, tenantId);
|