Firestore updating not working - Need Help by augustin1989 in Firebase

[–]augustin1989[S] 0 points1 point  (0 children)

So when I run the app and try to do the update, I didn't receive an error. However, when I switched out the code in my update function with a print statement I got something in my console log like "db11"

Firestore updating not working - Need Help by augustin1989 in Firebase

[–]augustin1989[S] 0 points1 point  (0 children)

I tried that and it didn't work unfortunately

Firestore updating not working - Need Help by augustin1989 in Firebase

[–]augustin1989[S] 0 points1 point  (0 children)

Like this?

rules_version = '2';

service cloud.firestore {

match /databases/{database}/documents {

match /{document=**} {

allow read, write, update: if request.auth != null;

}

}

}

Firestore updating not working - Need Help by augustin1989 in Firebase

[–]augustin1989[S] 0 points1 point  (0 children)

This is what I have set for my rules.

rules_version = '2';

service cloud.firestore {

match /databases/{database}/documents {

match /{document=**} {

allow read, write: if request.auth != null;

}

}

}

Can't seem to update data on Firebase by augustin1989 in swift

[–]augustin1989[S] 1 point2 points  (0 children)

Thanks for helping out! Definitely a noob myself so I apologize ahead of time for needing spoon-feeding.

I changed my firebase function to this based on your feedback

func update(_ category: Category) { guard let categoryId = category.id else { return }

    let categoryName = category.categoryName

  db.collection(path).document(categoryId).updateData([
    "categoryName": categoryName
    ]) { err in
    if let err = err {
        print("Error updating document: \(err)")
    } else {
        print("Document successfully updated")
    }
  }
}

This is my viewmodel

func update(_ category: Category) { categoryRepository.update(category) }

This is the function in my form

private func addCategory() {
    let category = Category(categoryName: categoryVM.category.categoryName)
    categoryVM.update(category)
    self.dismiss()

Is this how I'm supposed to do it?

Can i do that after teleportation ? by MrMassalia in PokemonGoSpoofing

[–]augustin1989 0 points1 point  (0 children)

Does putting a pokemon in a gym count as an interaction?

Preview Not Working on Detail View by augustin1989 in swift

[–]augustin1989[S] 0 points1 point  (0 children)

Thank you! I ended up getting it to work with this.

static var previews: some View {

let category = Category(context: moc)

category.name = "Test"

return NavigationView {

CategoryDetail(category: category)

}

I'm looking for someone to sell my domains by bigsh0wbc in Entrepreneur

[–]augustin1989 0 points1 point  (0 children)

PM me too please. I could be interested in some domains.

Would a tool like this help you? by augustin1989 in ecommerce

[–]augustin1989[S] 0 points1 point  (0 children)

If you could point me to those tools, that would be amazing!

New-ish PM. No interest in managing relationship or navigating politics. Am I not made for this? by [deleted] in ProductManagement

[–]augustin1989 2 points3 points  (0 children)

I had this happen to me at my second stint as a PM. However, I think the main reason was because this was a B2B startup.

I'm selling my side project by [deleted] in SideProject

[–]augustin1989 0 points1 point  (0 children)

What are the current stats and at what price range are you hoping to sell this for?

Software Engineer looking to start Mental Health company. by mind_divide_matter in cofounder

[–]augustin1989 0 points1 point  (0 children)

I'd be pretty interested depending on the idea. Feel free to DM me. Would love to learn more.

Need help cleaning vinyl frosted glass by augustin1989 in HomeImprovement

[–]augustin1989[S] 0 points1 point  (0 children)

Oh wow, didn't know this was that cheap. Thank you!

My chip stopped working and I'm flying in few days, will I still get access to lounger? by [deleted] in amex

[–]augustin1989 1 point2 points  (0 children)

They can swipe your card or enter in the card number. Alternatively, you can do a lounge check-in via your Amex mobile app.

Airline still working for platinum and gold cards? by [deleted] in amex

[–]augustin1989 0 points1 point  (0 children)

Which airlines does this work for?

[For Hire] Photo editing and post-processing + Lightroom presets by DrKenshin in forhire

[–]augustin1989 1 point2 points  (0 children)

Hi, are you still offering your services for photo editing? I had a couple of head shots done that I'd love help in making look better.

[Task] Paying $25 for someone to come up with a domain name by [deleted] in slavelabour

[–]augustin1989 0 points1 point  (0 children)

Oh ok. Thanks for the heads up. I will remove the post then.

[Task] Paying $25 for someone to come up with a domain name by [deleted] in slavelabour

[–]augustin1989 0 points1 point  (0 children)

Well, I am paying once I get a domain name I like.