Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func getEmployees() {
- let employees = Database.database().reference().child("Businesses").child(self.otherUser?["uid"] as! String).child("registered_employees").observe(DataEventType.childAdded, with: { (snapshot) in
- if snapshot.exists() {
- let employess = snapshot.childSnapshot(forPath: "uid")
- print(employess)
- } else {
- print("didnt call right values")
- }
- })
- }
- let userMessageRef = Database.database().reference().child("user-messages").child(fromID).child(toID)
- let messageId = childRef.key
- userMessageRef.updateChildValues([messageId!:1])
Add Comment
Please, Sign In to add comment