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) { func createUser(user: User) {
do { 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 { } catch {
print("error in creating user \(error.localizedDescription)") print("error in creating user \(error.localizedDescription)")
} }