Skip to content

Commit 9b2e08b

Browse files
authored
fix: simplify gpkgDownloadUrl construction in ExportJobHandler MAPCO-9228 (#62)
fix: simplify gpkgDownloadUrl construction in ExportJobHandler
1 parent db415e8 commit 9b2e08b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/job/models/export/exportJobHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,7 @@ export class ExportJobHandler extends JobHandler implements IJobHandler<ExportJo
445445
};
446446

447447
if (job.status === OperationStatus.COMPLETED) {
448-
const gpkgDownloadUrl = this.isS3GpkgProvider
449-
? `${this.downloadUrl}/${GPKGS_PREFIX}/${packageRelativePath}`
450-
: `${this.downloadUrl}/${packageRelativePath}`; //TODO: later when we change download server mount directory, the path for s3 and fs should be the same
448+
const gpkgDownloadUrl = `${this.downloadUrl}/${GPKGS_PREFIX}/${packageRelativePath}`;
451449
const jsonDownloadUrl = gpkgDownloadUrl.replace(/\.gpkg$/, '.json'); //TODO: In future, we will remove the json metadata file and support only gpkg
452450

453451
callbackResponse.artifacts = [

0 commit comments

Comments
 (0)