From e742ec8b6482d63469381670ae3f70653757a4fc Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 16 Sep 2023 11:42:24 -0400 Subject: [PATCH] fix: if syncing manual, set latest period to value of getCurrentPeriod() before optimistic update --- src/client/client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/client.ts b/src/client/client.ts index 9763725..0527932 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -55,6 +55,7 @@ export default class Client extends BaseClient { this.booted = true; this.emit("synced"); await init("herumi"); + this._latestPeriod = this.getCurrentPeriod(); await this.getLatestExecution(false); } else {