changing this back as now the mapping of the documentid should work
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user