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) {
|
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)")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user