AngulareFireDatabase update object not storing data in firebase database

I am struggling with adding data in database.
here is my code in UserService-

save(user:firebase.default.User ){
    this.db.object('/users/' + user.uid).update({
      email: user.email,
      name: user.displayName
    });
  }