Skip to content

Commit 15ec123

Browse files
Add debugAssert
1 parent 1a0638e commit 15ec123

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/firestore/src/local/indexeddb_schema.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ export class SchemaConverter implements SimpleDbSchemaConverter {
235235
);
236236

237237
return globalTargetStore.get(DbTargetGlobal.key).next(metadata => {
238+
debugAssert(
239+
!!metadata,
240+
'Metadata should have been written during the version 3 migration'
241+
);
238242
const writeSentinelKey = (
239243
path: ResourcePath
240244
): PersistencePromise<void> => {

0 commit comments

Comments
 (0)