Fix double apply (#6045)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-07-10 19:26:59 +04:00 committed by GitHub
parent a4f338d43a
commit bf0991d76a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -757,7 +757,7 @@ export class TServerStorage implements ServerStorage {
})
result.push(...transactions)
if (applyTxes.length > 0) {
if (performAsync === undefined && applyTxes.length > 0) {
await this.apply(ctx, applyTxes)
}