Remove and read alert on sync offset (#19862)

(cherry picked from commit fce358eaa2c154acabcce851aa22dc783c30d5dc)
This commit is contained in:
Mohit Yadav 2025-02-18 18:36:58 +05:30 committed by mohitdeuex
parent b7611081a4
commit aac55afaa7

View File

@ -115,7 +115,7 @@ public class EventSubscriptionRepository extends EntityRepository<EventSubscript
}
public EventSubscriptionOffset syncEventSubscriptionOffset(String eventSubscriptionName) {
EventSubscription eventSubscription = getByName(null, eventSubscriptionName, getFields("id"));
EventSubscription eventSubscription = getByName(null, eventSubscriptionName, getFields("*"));
long latestOffset = daoCollection.changeEventDAO().getLatestOffset();
long currentTime = System.currentTimeMillis();
// Upsert Offset
@ -133,6 +133,7 @@ public class EventSubscriptionRepository extends EntityRepository<EventSubscript
"eventSubscriptionOffset",
JsonUtils.pojoToJson(eventSubscriptionOffset));
EventSubscriptionScheduler.getInstance().updateEventSubscription(eventSubscription);
return eventSubscriptionOffset;
}