changing this back as now the mapping of the documentid should work

This commit is contained in:
talksik
2021-12-19 19:20:43 -08:00
parent 1cca80166f
commit 67401d311c
@@ -34,7 +34,7 @@ class FirestoreService {
func createUser(user: User) {
do {
let _ = try db.collection(Collection.users.rawValue).document(user.id!).setData(from: user)
let _ = try db.collection(Collection.users.rawValue).addDocument(from: user)
} catch {
print("error in creating user \(error.localizedDescription)")
}