Skip to content

[functions]: v2 change events and creation shapshots not referencing named database it was triggered on #6971

@SupposedlySam

Description

@SupposedlySam

[REQUIRED] Environment info

firebase-tools:

13.6.1

Platform:

macOS

[REQUIRED] Steps to reproduce

  • Create a Firebase project with a named database called dev
  • Create a v2 Firebase Function for onDocumentCreated
  • Create a Document on the dev database at the path you defined your function for
  • Use the snapshot.ref.firestore accessor and check whether it's pointing to the dev database

[REQUIRED] Expected behavior

The database name should be dev

[REQUIRED] Actual behavior

The database name is (default)

If you actually try to use the ref to delete it, it will yell at you and tell you you're trying to access a different database.

For instance try, snapshot.ref.delete().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions