File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,6 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend {
409409 }
410410
411411 public async syncToDatabase ( userTuples : UserTuple [ ] ) : Promise < void > {
412- const syncData = this . syncAccumulator . getJSON ( true ) ;
413-
414412 if ( this . isPersisting ) {
415413 logger . warn ( "Skipping syncToDatabase() as persist already in flight" ) ;
416414 this . pendingUserPresenceData . push ( ...userTuples ) ;
@@ -421,6 +419,8 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend {
421419 }
422420
423421 try {
422+ const syncData = this . syncAccumulator . getJSON ( true ) ;
423+
424424 await Promise . all ( [
425425 this . persistUserPresenceEvents ( userTuples ) ,
426426 this . persistAccountData ( syncData . accountData ) ,
You can’t perform that action at this time.
0 commit comments