Skip to content

Commit

Permalink
fix Firebase timestamp values
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahhh committed Feb 12, 2021
1 parent 9a64a5e commit 18446e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/FirebaseAccess.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = class FirebaseAccess
# save user to server
userRef = @ref.child("users").child(@user.uid)
newUserData =
date: Firebase.ServerValue.TIMESTAMP
date: firebase.database.ServerValue.TIMESTAMP
email: @user.providerData[0].email
return userRef.set(newUserData)

Expand All @@ -57,7 +57,7 @@ module.exports = class FirebaseAccess
drawingsRef = @ref.child("drawings")
newDrawingData =
uid: @user.uid
date: Firebase.ServerValue.TIMESTAMP
date: firebase.database.ServerValue.TIMESTAMP
source: drawing
newKey = drawingsRef.push().key
drawingsRef.child(newKey).set(newDrawingData)
Expand Down

0 comments on commit 18446e9

Please sign in to comment.