firebase-cloud-functions-introduction icon indicating copy to clipboard operation
firebase-cloud-functions-introduction copied to clipboard

onChange is deprecated

Open JSONRice opened this issue 6 years ago • 1 comments

@maxschwarzmueller I'm getting a firebase deploy error when running the code with the onChange. Seems this is deprecated. I swapped it out for onFinalize but that's not picking up the file changes (e.g. file upload). Please advise.

https://github.com/academind/firebase-cloud-functions-introduction/blob/57ecbe5ca47bc381686dc9a418732fbda453107a/functions/index.js#L18

JSONRice avatar Jun 29 '18 23:06 JSONRice

It seems onFinalize should do the trick: https://firebase.google.com/docs/functions/gcp-storage-events

teolag avatar Jul 21 '18 19:07 teolag