diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 23:35:00 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 23:35:00 -0400 |
commit | 2ea02124a564c54f20ea530b56cd9f932212f9f3 (patch) | |
tree | 48c42c4a1403d83f2f32a00e24c91dd584433d55 /src/actions/firebaseAdmin.js | |
parent | fe125c5deb979d753d8b903ce6cdeb968e1c5f46 (diff) |
Tried many things to try to fix the glitch. I was successful. Yay! 5 hours of debugging a bug is finally over. :)
Diffstat (limited to 'src/actions/firebaseAdmin.js')
-rw-r--r-- | src/actions/firebaseAdmin.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/firebaseAdmin.js b/src/actions/firebaseAdmin.js index 5ca0d17..c322f64 100644 --- a/src/actions/firebaseAdmin.js +++ b/src/actions/firebaseAdmin.js @@ -1,4 +1,4 @@ -import { firestore, storage } from '../firebase.js'; +import { firestore, fireStorage } from '../firebase.js'; export const UPDATE_ADMIN = 'UPDATE_ADMIN'; export const UPDATE_ADMIN_REQUESTS = 'UPDATE_ADMIN_REQUESTS'; @@ -76,8 +76,8 @@ export const adminRejectHours = (_id, _path) => (dispatch) => { export const adminDeleteRequest = (_id, _path) => (dispatch) => { var docRef = firestore.collection('requests').doc(_id); docRef.delete().then(() => { - var storageRef = storage.ref().child(_path); - storageRef.delete().then(() => { + var fireStorageRef = fireStorage.ref().child(_path); + fireStorageRef.delete().then(() => { }); }); } |