Skip to content

Commit 1d5a4a6

Browse files
committed
Don't inline await
1 parent 322e27d commit 1d5a4a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/firestore/exp/src/api/database.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ export function loadBundle(
332332
const resultTask = new LoadBundleTask();
333333
// eslint-disable-next-line @typescript-eslint/no-floating-promises
334334
getSyncEngine(firestoreImpl).then(async syncEngine => {
335+
const databaseId = (await firestoreImpl._getConfiguration()).databaseInfo
336+
.databaseId;
335337
enqueueLoadBundle(
336-
(await firestoreImpl._getConfiguration()).databaseInfo.databaseId,
338+
databaseId,
337339
firestoreImpl._queue,
338340
syncEngine,
339341
bundleData,

0 commit comments

Comments
 (0)