test-entity-library-asm 1.7.2 → 1.7.4

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.
@@ -20,7 +20,7 @@ export declare class Partner {
20
20
  profile: any;
21
21
  owner: number;
22
22
  created: string;
23
- updated: string;
23
+ updated: Date;
24
24
  status: number;
25
25
  companies: Company[];
26
26
  discount_code_partners: DiscountCodeUser[];
@@ -121,10 +121,9 @@ var Partner = /** @class */ (function () {
121
121
  __decorate([
122
122
  (0, typeorm_1.Column)({
123
123
  type: 'datetime',
124
- transformer: new dateTransformer_1.DateTransformer(),
125
124
  comment: 'Fecha de actualización del registro.',
126
125
  }),
127
- __metadata("design:type", String)
126
+ __metadata("design:type", Date)
128
127
  ], Partner.prototype, "updated", void 0);
129
128
  __decorate([
130
129
  (0, typeorm_1.Column)({
package/dist/index.js CHANGED
@@ -135,6 +135,7 @@ exports.timezoneMiddleware = timezoneMiddleware;
135
135
  function getTimeZone() {
136
136
  var _a;
137
137
  var store = asyncLocalStorage.getStore();
138
+ console.log(store, 'Prueba aer si funciona');
138
139
  return (_a = store === null || store === void 0 ? void 0 : store.get('timezone')) !== null && _a !== void 0 ? _a : 'UTC';
139
140
  }
140
141
  exports.getTimeZone = getTimeZone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -108,10 +108,9 @@ export class Partner {
108
108
 
109
109
  @Column({
110
110
  type: 'datetime',
111
- transformer: new DateTransformer(),
112
111
  comment: 'Fecha de actualización del registro.',
113
112
  })
114
- updated: string
113
+ updated: Date
115
114
 
116
115
  @Column({
117
116
  default: 1,
package/src/index.ts CHANGED
@@ -91,6 +91,8 @@ export function timezoneMiddleware(
91
91
 
92
92
  export function getTimeZone(): string {
93
93
  const store = asyncLocalStorage.getStore()
94
+ console.log(store, 'Prueba aer si funciona')
95
+
94
96
  return store?.get('timezone') ?? 'UTC'
95
97
  }
96
98