From ae3e211322c8e450fa7381da058b0033b978b931 Mon Sep 17 00:00:00 2001 From: Denver Coneybeare Date: Mon, 24 Apr 2023 16:11:39 -0400 Subject: [PATCH] Firestore: target_data.ts: use string values for TargetPurpose enum, rather than numeric --- packages/firestore/src/local/target_data.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/firestore/src/local/target_data.ts b/packages/firestore/src/local/target_data.ts index 0128d1b2322..a912c21d498 100644 --- a/packages/firestore/src/local/target_data.ts +++ b/packages/firestore/src/local/target_data.ts @@ -23,22 +23,22 @@ import { ByteString } from '../util/byte_string'; /** An enumeration of the different purposes we have for targets. */ export const enum TargetPurpose { /** A regular, normal query target. */ - Listen, + Listen = 'TargetPurposeListen', /** * The query target was used to refill a query after an existence filter * mismatch. */ - ExistenceFilterMismatch, + ExistenceFilterMismatch = 'TargetPurposeExistenceFilterMismatch', /** * The query target was used if the query is the result of a false positive in * the bloom filter. */ - ExistenceFilterMismatchBloom, + ExistenceFilterMismatchBloom = 'TargetPurposeExistenceFilterMismatchBloom', /** The query target was used to resolve a limbo document. */ - LimboResolution + LimboResolution = 'TargetPurposeLimboResolution' } /**