         
         
         //creating an action property within the User data model
-        self.action = Action(id: "someIdAct", categoryId: "someIdCategory", createdAt: "\(Date())", status: ActionStatus.inProgress.rawValue)
+        self.action = Action(id: "someIdAct", createdAt: "\(Date())", status: ActionStatus.inProgress.rawValue)
         FireBaseManager.shared.updateAction(action: self.action)
         
         //creating a new moment
         let picUrls = ["www.test.com\\pic1", "www.test.com\\pic2"]
         let geoLocation = ["lat": "12.33333", "lon": "233.333332"]
         self.moment = Moment(title: "what a great feeling", details: "When I started the act ...", actId: self.action.id, userId: FireBaseManager.UID, timestamp: "\(Date())", picUrls: picUrls, geoLocation: geoLocation, location: "some address")
-        FireBaseManager.shared.updateMoment(moment: self.moment)
+        FireBaseManager.shared.updateMoment(moment: self.moment, newMoment: true)
         
         
         //get the moment timeline

  case completed = "completed"
}
class SettingsViewController: UIViewController {
<<<<<<< HEAD
  var moment: Moment!
  var user: User!
  var action: Action!
  
  override func viewDidLoad() {
    super.viewDidLoad()
    
  }
  
  override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(true)
    
    //register new user by email
    FireBaseManager.shared.registerNewUserWithEmail(name: "akrm", email: "r@b.com", password: "22332112") { (user, error) in

          }
        }
      }
    }
    
  }

}
