Skip to content

Firebase function not triggered on next calendar day for Realtime DB write #212

@afficionaddo

Description

@afficionaddo

Test case

I have a function that triggers on RealTime- Db write.
The path I use to check for write consists of a 'date-variable' which is declared inside firebase function script in index.js:
var todayDate=new Date()
.....('reports'+todayDate+'/${key}')....

Were you able to successfully deploy your functions?

Yes

Expected behavior

The function should get triggered every time any write/update is performed at the above mentioned path & send email.

Actual behavior

If i have deployed the function today, then it will work perfectly for the current calendar day BUT on the next calendar day it does not get triggered. I have to re-deploy & then it works perfectly.

Is it the date-variable that is causing the problem?

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