Skip to content

Commit

Permalink
fix: geoserverLAyerName convert to lower case outside of geoserverClient
Browse files Browse the repository at this point in the history
  • Loading branch information
almog8k committed Oct 13, 2024
1 parent 958f19d commit 4bf300b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/httpClients/geoserverClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GeoserverClient extends HttpClient {
try {
const url = `/featureTypes/${this.workspace}/${this.dataStore}`;
const publishReq: IInsertGeoserverRequest = {
nativeName: layerName.toLowerCase(),
nativeName: layerName,
};

await this.post(url, publishReq);
Expand Down
5 changes: 3 additions & 2 deletions src/job/models/newJobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export class NewJobHandler implements IJobHandler {
}

if (!insertedToGeoServer) {
logger.info({ msg: 'publishing to geoserver', layerName });
await this.geoserverClient.publish(layerName);
const geoserverLayerName = layerName.toLowerCase();
logger.info({ msg: 'publishing to geoserver', geoserverLayerName });
await this.geoserverClient.publish(geoserverLayerName);
finalizeTaskParams = await this.markFinalizeStepAsCompleted(job.id, task.id, 'insertedToGeoServer', finalizeTaskParams);
}

Expand Down

0 comments on commit 4bf300b

Please sign in to comment.