@golemio/parkings 1.15.1-dev.1470343241 → 1.15.1-dev.1478241824

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.
@@ -7,7 +7,6 @@ export declare class SaveIsphkMeasurementsTask extends AbstractTaskJsonSchema<an
7
7
  readonly queueName = "saveIsphkMeasurements";
8
8
  readonly queueTtl: number;
9
9
  readonly schema: JSONSchemaValidator;
10
- private isphkMeasurementTransformation;
11
10
  constructor(parkingsMeasurementsRepository: PostgresModel, parkingsMeasurementsActualRepository: PostgresModel);
12
11
  execute(inputData: any): Promise<void>;
13
12
  }
@@ -39,12 +39,12 @@ let SaveIsphkMeasurementsTask = exports.SaveIsphkMeasurementsTask = class SaveIs
39
39
  this.queueName = "saveIsphkMeasurements";
40
40
  this.queueTtl = 15 * 60 * 1000;
41
41
  this.schema = new golemio_validator_1.JSONSchemaValidator("SaveIsphkMeasurementsTaskValidation", IsphkMeasurementsSchema_1.IsphkMeasurementsSchema);
42
- this.isphkMeasurementTransformation = new IsphkMeasurementTransformation_1.IsphkMeasurementTransformation(new Date());
43
42
  }
44
43
  execute(inputData) {
45
44
  return __awaiter(this, void 0, void 0, function* () {
46
45
  try {
47
- const transformedData = this.isphkMeasurementTransformation.transformArray(inputData.data);
46
+ const isphkMeasurementTransformation = new IsphkMeasurementTransformation_1.IsphkMeasurementTransformation(new Date());
47
+ const transformedData = isphkMeasurementTransformation.transformArray(inputData.data);
48
48
  yield this.parkingsMeasurementsRepository.bulkSave(transformedData);
49
49
  yield this.parkingsMeasurementsActualRepository.bulkSave(transformedData);
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SaveIsphkMeasurementsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/SaveIsphkMeasurementsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAoE;AACpE,iHAA4G;AAC5G,4CAAiE;AACjE,mHAAyF;AACzF,8EAAsE;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,CAAA;IAE1D,WAAA,IAAA,iBAAM,EAAC,2CAAoB,CAAC,oCAAoC,CAAC,CAAA;qCADjB,kCAAa;QAEP,kCAAa;GAT/D,yBAAyB,CAwBrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/parkings",
3
- "version": "1.15.1-dev.1470343241",
3
+ "version": "1.15.1-dev.1478241824",
4
4
  "description": "Golemio Parkings Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",