@checksum-ai/runtime 1.1.37 → 1.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/checksumlib.js CHANGED
@@ -29512,14 +29512,22 @@
29512
29512
  }
29513
29513
  async goLive(sleepAfter = 1e3) {
29514
29514
  if (this.isLive) {
29515
+ console.log("Already live, nothing to do.");
29515
29516
  return;
29516
29517
  }
29518
+ console.log("Going live...");
29517
29519
  this.stop();
29518
29520
  this.currentTraveledNumberOfEvents = void 0;
29519
29521
  const { trimmedEvents, castedEvents } = this.trimEventsToLastCheckout(
29520
29522
  this.liveEvents
29521
29523
  );
29522
- this.start(this.startOptions, castedEvents);
29524
+ this.start(
29525
+ {
29526
+ ...this.startOptions,
29527
+ firstEventTimestamp: castedEvents.length ? castedEvents[0].timestamp : trimmedEvents[0].timestamp
29528
+ },
29529
+ castedEvents
29530
+ );
29523
29531
  this.isLive = true;
29524
29532
  await this.fastForward(trimmedEvents);
29525
29533
  if (sleepAfter) {