From ec5819d31eee7cc4b1e3c5b93b1ada7485330668 Mon Sep 17 00:00:00 2001 From: Paul Legan Date: Wed, 17 Aug 2022 09:34:59 -0400 Subject: [PATCH] fixed replication issue --- .../com/coresecure/brightcove/wrapper/sling/ServiceUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/current/core/src/main/java/com/coresecure/brightcove/wrapper/sling/ServiceUtil.java b/current/core/src/main/java/com/coresecure/brightcove/wrapper/sling/ServiceUtil.java index 7382fd3..230314f 100644 --- a/current/core/src/main/java/com/coresecure/brightcove/wrapper/sling/ServiceUtil.java +++ b/current/core/src/main/java/com/coresecure/brightcove/wrapper/sling/ServiceUtil.java @@ -1008,6 +1008,8 @@ public void updateAsset(@Nonnull Asset newAsset, JSONObject innerObj, ResourceRe break; } + // set the sync time + map.put(Constants.BRC_LASTSYNC, com.coresecure.brightcove.wrapper.utils.JcrUtil.now2calendar()); String key = getKey(x); @@ -1048,9 +1050,6 @@ else if (x.equals(Constants.LINK)) { } } - //AFTER SETTING ALL THE METADATA - SET THE LAST UPDATE TIME - //SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"); - map.put(Constants.BRC_LASTSYNC, com.coresecure.brightcove.wrapper.utils.JcrUtil.now2calendar()); resourceResolver.commit(); LOGGER.trace(">>UPDATED METADATA FOR VIDEO : [{}]",map.get(Constants.BRC_ID));