File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/firestore/src/api Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ export function enablePersistentCacheIndexAutoCreation(
119
119
export function disablePersistentCacheIndexAutoCreation (
120
120
indexManager : PersistentCacheIndexManager
121
121
) : void {
122
+ indexManager . _client . verifyNotTerminated ( ) ;
123
+
122
124
// TODO: Refactor this code such that disabling persistent cache auto creation
123
125
// does _not_ need FieldIndexManagementApiImpl (i.e. it just uses the
124
126
// interface) so that FieldIndexManagementApiImpl can be tree-shaken away if
@@ -137,6 +139,8 @@ export function disablePersistentCacheIndexAutoCreation(
137
139
export function deleteAllPersistentCacheIndexes (
138
140
indexManager : PersistentCacheIndexManager
139
141
) : void {
142
+ indexManager . _client . verifyNotTerminated ( ) ;
143
+
140
144
// TODO: Refactor this code such that deleting field indexes does _not_ need
141
145
// FieldIndexManagementApiImpl so that FieldIndexManagementApiImpl can be
142
146
// tree-shaken away if the only client-side indexing function used is this
You can’t perform that action at this time.
0 commit comments