Skip to content

Commit

Permalink
Add update event to syncViewerLayers logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Aug 15, 2024
1 parent f24585e commit a2333e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/sync-viewer-layer-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ async function syncViewerLayers(menuTree, eventType, viewerLayerId) {
break
}

case 'update':
case 'publish': {
await geonetwork.recordsRequest({
url: '?uuidProcessing=OVERWRITE&publishToAll=true',
Expand All @@ -191,6 +192,7 @@ async function syncViewerLayers(menuTree, eventType, viewerLayerId) {

switch (eventType) {
case 'create':
case 'update':
case 'publish':
const { viewerLayer } = await datocmsRequest({
query: viewerLayerByIdQuery,
Expand Down

0 comments on commit a2333e9

Please sign in to comment.