functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

Confirmation Email error

Open peiqinzhao opened this issue 5 years ago • 2 comments

How to reproduce these conditions

Sample name or URL where you found the bug

Confirmation Email

Failing Function code used (including require/import commands at the top)

functions/index.js

Steps to set up and reproduce

Sample data pasted or attached as JSON (not an image)

Security rules used

Debug output

Errors in the console logs

TypeError: snapshot.changed is not a function at exports.sendEmailConfirmation.functions.database.ref.onWrite (/srv/index.js:38:17) at cloudFunctionNewSignature (/srv/node_modules/firebase-functions/lib/cloud-functions.js:105:23) at /worker/worker.js:804:24 at at process._tickDomainCallback (internal/process/next_tick.js:229:7)

Screenshots

Expected behavior

Actual behavior

peiqinzhao avatar Mar 07 '19 17:03 peiqinzhao

having the same problem, really need help

cyiboy avatar Oct 04 '19 01:10 cyiboy

This example doesn't work for me on the latest API. Looking at the docs, change method doesn't appear to be in the current API for snapshots.

bgashler1 avatar Dec 22 '19 03:12 bgashler1