aboutsummaryrefslogtreecommitdiff
path: root/src/actions/firebaseFirestore.js
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-13 23:35:00 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-13 23:35:00 -0400
commit2ea02124a564c54f20ea530b56cd9f932212f9f3 (patch)
tree48c42c4a1403d83f2f32a00e24c91dd584433d55 /src/actions/firebaseFirestore.js
parentfe125c5deb979d753d8b903ce6cdeb968e1c5f46 (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/firebaseFirestore.js')
-rw-r--r--src/actions/firebaseFirestore.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/firebaseFirestore.js b/src/actions/firebaseFirestore.js
index a95e0c8..7e65eec 100644
--- a/src/actions/firebaseFirestore.js
+++ b/src/actions/firebaseFirestore.js
@@ -1,4 +1,4 @@
-import { firestore, storage } from '../firebase.js';
+import { firestore, fireStorage } from '../firebase.js';
export const UPDATE_DIVISON = 'UPDATE_DIVISON';
export const UPDATE_HOURS = 'UPDATE_HOURS';
@@ -106,8 +106,8 @@ export const requestHours = (_time, _trainee, _location, _subject, _date, _pictu
const _email = getState().firebaseAuth.userEmail;
const _path = 'requests/' + _uid + '/' + _pictureName;
- var storageRef = storage.ref().child(_path);
- storageRef.getDownloadURL().then((url) => {
+ var fireStorageRef = fireStorage.ref().child(_path);
+ fireStorageRef.getDownloadURL().then((url) => {
docRef.add({
time: _time,
trainee: _trainee,