diff options
Diffstat (limited to 'src/actions/firebaseFirestore.js')
| -rw-r--r-- | src/actions/firebaseFirestore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/firebaseFirestore.js b/src/actions/firebaseFirestore.js index 7e65eec..a95e0c8 100644 --- a/src/actions/firebaseFirestore.js +++ b/src/actions/firebaseFirestore.js @@ -1,4 +1,4 @@ -import { firestore, fireStorage } from '../firebase.js'; +import { firestore, storage } 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 fireStorageRef = fireStorage.ref().child(_path); - fireStorageRef.getDownloadURL().then((url) => { + var storageRef = storage.ref().child(_path); + storageRef.getDownloadURL().then((url) => { docRef.add({ time: _time, trainee: _trainee, |
