Skip to content

firebase-functions v2.0.0 Timestamp and Date #285

@jbgomez21

Description

@jbgomez21

Version info

firebase-functions:
v2.0.0

Test case

I upgraded from v1.0.0 to v2.0.0, in my triggers I have the following situation

functions.firestore.document('...').onCreate((snap, context) => {
	 timestamp in snap.data() is Timestamp 
}

functions.firestore.document('...').onUpdate((snap, context) => {
	 timestamp in change.before.data() and change.after.data() are Date
}

That's ok?

Expected behavior

functions.firestore.document('...').onCreate((snap, context) => {
	timestamp in snap.data() is Timestamp 
}

functions.firestore.document('...').onUpdate((snap, context) => {
	timestamp in change.before.data() and change.after.data() are Timestamp 
}

Greetings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions