You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?