@seidor-cloud-produtos/orbit-backend-lib 2.0.80 → 2.0.82

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.
@@ -111,8 +111,9 @@ class LoggerGateway {
111
111
  return {
112
112
  level: types_1.LOG_LEVEL.info,
113
113
  dateTime: new Date(),
114
- actor: params?.actor || 'default',
115
- type: params?.type || 'default',
114
+ actor: 'default',
115
+ type: 'default',
116
+ ...(params || {}),
116
117
  };
117
118
  }
118
119
  async setLevel(level, filter, ttl) {
@@ -29,7 +29,7 @@ class LoggerOrbit extends logger_1.default {
29
29
  async register(props, data) {
30
30
  try {
31
31
  const payload = this.buildPayload(props, data);
32
- await this.queue.publish('logservice.common.direct', new LogEvent(payload));
32
+ await this.queue.publish('log-service.direct', new LogEvent(payload));
33
33
  }
34
34
  catch (error) {
35
35
  if (this.options?.retryStrategy) {
@@ -53,10 +53,10 @@ class LoggerOrbit extends logger_1.default {
53
53
  buildDefaultProps(params) {
54
54
  const sevenDaysInHours = 168;
55
55
  return {
56
- ...super.buildDefaultProps(),
57
- category: params?.category || logger_1.CategoryEnum.TECHNICAL,
56
+ category: logger_1.CategoryEnum.TECHNICAL,
58
57
  actorType: logger_1.ActorEnum.SYSTEM,
59
58
  expirationHours: sevenDaysInHours * 4,
59
+ ...super.buildDefaultProps(params),
60
60
  };
61
61
  }
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seidor-cloud-produtos/orbit-backend-lib",
3
- "version": "2.0.80",
3
+ "version": "2.0.82",
4
4
  "description": "Internal lib for backend components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",