1amageek / Pring

Cloud Firestore model framework for iOS - Google

Home Page:https://firebase.google.com/docs/firestore/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on pack().commit not resolved

MRzr opened this issue · comments

When there is error saving document to firebase error object is ignored and you continue with getDocument method. I think error message is quite important here (bad permissions etc.)

My solution is to return nil reference and error object if there is any and perform getDocument only where there is no error in save.

self.pack().commit { (error) in

Thank you for Message.
I think that you are right.I will correct it soon.

You're welcome. Keep up good work!