Skip to content

Commit 3a21e11

Browse files
Comments
1 parent 9094d8a commit 3a21e11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/firestore/src/local/bundle_cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import { PersistenceTransaction } from './persistence_transaction';
2929
*/
3030
export interface BundleCache {
3131
/**
32-
* Gets a saved `Bundle` for a given `bundleId`, returns undefined if
33-
* no bundles are found under the given id.
32+
* Gets the saved `BundleMetadata` for a given `bundleId`, returns undefined
33+
* if no bundle metadata is found under the given id.
3434
*/
3535
getBundleMetadata(
3636
transaction: PersistenceTransaction,

packages/firestore/src/local/local_serializer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function isDocumentQuery(dbQuery: DbQuery): dbQuery is PublicDocumentsTarget {
306306
return (dbQuery as PublicDocumentsTarget).documents !== undefined;
307307
}
308308

309-
/** Encodes a DbBundle to a Bundle. */
309+
/** Encodes a DbBundle to a BundleMetadata object. */
310310
export function fromDbBundle(dbBundle: DbBundle): BundleMetadata {
311311
return {
312312
id: dbBundle.bundleId,
@@ -372,7 +372,7 @@ export function fromProtoNamedQuery(namedQuery: ProtoNamedQuery): NamedQuery {
372372
};
373373
}
374374

375-
/** Encodes a BundleMetadata proto object to a Bundle model object. */
375+
/** Decodes a BundleMetadata proto into a BundleMetadata object. */
376376
export function fromBundleMetadata(
377377
metadata: ProtoBundleMetadata
378378
): BundleMetadata {

0 commit comments

Comments
 (0)