Created
October 4, 2018 05:34
-
-
Save uno-de-piera/5025775eff5a6046cd4d81f5b476277e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storageRef.child(`/products/${fileId}`).getDownloadURL().then(url => { | |
let product = firebase.firestore().collection('products').doc(id); | |
return product.update({ | |
url: url, | |
file_id: fileId | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment