amocrm-client
Advanced tools
Comparing version 0.0.42 to 0.0.43
@@ -13,5 +13,5 @@ "use strict"; | ||
const { data } = yield request.get(url, criteria, options); | ||
if (!data) { | ||
if (!data) | ||
return null; | ||
} | ||
console.log(this.from(data)); | ||
const instance = (0, class_transformer_1.plainToClassFromExist)(this.createEntity(), data); | ||
@@ -18,0 +18,0 @@ this.emit('getById'); |
@@ -13,3 +13,3 @@ "use strict"; | ||
(0, class_transformer_1.Type)(() => Date), | ||
(0, class_transformer_1.Transform)(({ value }) => new Date(value * 1000), { toClassOnly: true }), | ||
(0, class_transformer_1.Transform)(({ value }) => new Date(value * 1000)), | ||
tslib_1.__metadata("design:type", Date) | ||
@@ -19,3 +19,3 @@ ], LeadDTO.prototype, "closed_at", void 0); | ||
(0, class_transformer_1.Type)(() => Date), | ||
(0, class_transformer_1.Transform)(({ value }) => new Date(value * 1000), { toClassOnly: true }), | ||
(0, class_transformer_1.Transform)(({ value }) => new Date(value * 1000)), | ||
tslib_1.__metadata("design:type", Date) | ||
@@ -22,0 +22,0 @@ ], LeadDTO.prototype, "closest_task_at", void 0); |
{ | ||
"name": "amocrm-client", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "JS Library for AmoCRM", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
516109