Skip to content

Commit

Permalink
fix: pr notes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenkapelian committed Mar 8, 2023
1 parent 235bf00 commit f5446de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/tasks/models/tasksManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class TasksManager {

return callbackParams;
} catch (error) {
this.logger.error({ jobId: job.id, error: (error as Error).message, msg: `Sending callback has failed` });
this.logger.error({ jobId: job.id, err: error, reason: (error as Error).message, msg: `Sending callback has failed` });
}
}

Expand Down Expand Up @@ -258,7 +258,7 @@ export class TasksManager {
try {
fileSize = await getFileSize(packageFullPath);
} catch (error) {
this.logger.error({ jobId: job.id, reason: `${(error as Error).message}`, msg: `failed getting gpkg file size to ${packageFullPath}` });
this.logger.error({ jobId: job.id, err: error, reason: `${(error as Error).message}`, msg: `failed getting gpkg file size to ${packageFullPath}` });
}
}
const callbackParams: ICallbackDataExportBase = {
Expand Down
8 changes: 4 additions & 4 deletions tests/mocks/data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import { LayerMetadata } from '@map-colonies/mc-model-types';
import { LayerMetadata, ProductType, RecordType } from '@map-colonies/mc-model-types';
import { IJobResponse, OperationStatus } from '@map-colonies/mc-priority-queue';
import { FeatureCollection } from '@turf/helpers';
import {
Expand Down Expand Up @@ -797,7 +797,7 @@ const inProgressExportJob: IJobResponse<IJobExportParameters, ITaskParameters> =
const exportJobs = [inProgressExportJob, completedExportJob];

const metadataExportJson = {
type: 'RECORD_RASTER',
type: RecordType.RECORD_RASTER,
classification: 'string',
productName: 'string',
description: 'string',
Expand All @@ -813,7 +813,7 @@ const metadataExportJson = {
region: ['region1', 'region1'],
productId: 'string',
productVersion: '1.0',
productType: 'OrthophotoHistory',
productType: ProductType.ORTHOPHOTO_HISTORY,
srsName: 'string',
maxResolutionDeg: 0.02197265625,
maxResolutionMeter: 8000,
Expand Down Expand Up @@ -890,7 +890,7 @@ const metadataExportJson = {
],
},
productBoundingBox: '25.120393802953117,-16.979479051947962,37.42414218385065,17.95036866237062',
};
} as unknown as LayerMetadata;

const featuresRecordsSampleFc1 = [
{
Expand Down

0 comments on commit f5446de

Please sign in to comment.