Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange is deprecated #1

Open
JSONRice opened this issue Jun 29, 2018 · 1 comment
Open

onChange is deprecated #1

JSONRice opened this issue Jun 29, 2018 · 1 comment

Comments

@JSONRice
Copy link

JSONRice commented Jun 29, 2018

@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.

exports.onFileChange = functions.storage.object().onChange(event => {

@teolag
Copy link

teolag commented Jul 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants