Skip to content

Commit

Permalink
#204 fix status update
Browse files Browse the repository at this point in the history
  • Loading branch information
as0050629 committed Nov 20, 2023
1 parent 91dc0e7 commit 98c2baa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public PublishingStatus publish(DataReference ref) throws DataOutputException {
String sThumbnailUrl = StringUtils.trimToNull(getAttributeValue(attributes, WKAConstants.WKA_THUMBNAIL_URL, null));
String resourceUrl = getAttributeValue(attributes, WKAConstants.WKA_RESOURCE_URL, null);

//resourceUrl="https://services.arcgis.com/RhGiohBHzSBKt1MS/arcgis/rest/services/group_of_layers/FeatureServer/1";
resourceUrl="https://services.arcgis.com/RhGiohBHzSBKt1MS/arcgis/rest/services/group_of_layers/FeatureServer/1";
// clean up resource URL
resourceUrl = resourceUrl.replace("http:", "https:")
.replace(":80/", "/");
Expand Down Expand Up @@ -425,7 +425,7 @@ public PublishingStatus publish(DataReference ref) throws DataOutputException {
boolean wasUpdated = client.writeSubLayerMetadata(metadataUpdateURI, arcgisMetadata, featureServerToken);
System.out.println("update metadata at " + metadataUpdateURI + " was a succes: " + wasUpdated);

return PublishingStatus.SKIPPED;
return PublishingStatus.UPDATED;
}
}
} catch (MalformedURLException ex) {
Expand Down

0 comments on commit 98c2baa

Please sign in to comment.