Change storageBucket to variable

This commit is contained in:
Clayton Wilson 2019-12-03 18:20:20 -05:00
parent 1747a29c2e
commit ebca5192e0

View File

@ -355,7 +355,7 @@ exports.uploadProfileImage = (req, res) => {
busboy.on('finish', () => {
admin
.storage()
.bucket("twistter-e4649.appspot.com")
.bucket(config.storageBucket)
.upload(imageToBeUploaded.filepath, {
resumable: false,
metadata: {