fix: if syncing manual, set latest period to value of getCurrentPeriod() before optimistic update

This commit is contained in:
Derrick Hammer 2023-09-16 11:42:24 -04:00
parent 4490d386b3
commit e742ec8b64
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ export default class Client extends BaseClient {
this.booted = true; this.booted = true;
this.emit("synced"); this.emit("synced");
await init("herumi"); await init("herumi");
this._latestPeriod = this.getCurrentPeriod();
await this.getLatestExecution(false); await this.getLatestExecution(false);
} else { } else {