Skip to content

Commit 18ace68

Browse files
authored
Firestore: use string values for TargetPurpose enum (#7257)
1 parent 3ca7e97 commit 18ace68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/firestore/src/local/target_data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ import { ByteString } from '../util/byte_string';
2323
/** An enumeration of the different purposes we have for targets. */
2424
export const enum TargetPurpose {
2525
/** A regular, normal query target. */
26-
Listen,
26+
Listen = 'TargetPurposeListen',
2727

2828
/**
2929
* The query target was used to refill a query after an existence filter
3030
* mismatch.
3131
*/
32-
ExistenceFilterMismatch,
32+
ExistenceFilterMismatch = 'TargetPurposeExistenceFilterMismatch',
3333

3434
/**
3535
* The query target was used if the query is the result of a false positive in
3636
* the bloom filter.
3737
*/
38-
ExistenceFilterMismatchBloom,
38+
ExistenceFilterMismatchBloom = 'TargetPurposeExistenceFilterMismatchBloom',
3939

4040
/** The query target was used to resolve a limbo document. */
41-
LimboResolution
41+
LimboResolution = 'TargetPurposeLimboResolution'
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)