Skip to content

Commit

Permalink
Merge pull request #286 from fmasa/fix-join
Browse files Browse the repository at this point in the history
Fix Party invitation processing
  • Loading branch information
fmasa authored May 29, 2024
2 parents 47243a6 + beac047 commit 49a504e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import cz.frantisekmasa.wfrp_master.common.core.domain.party.PartyRepository
import dev.gitlive.firebase.firestore.FieldValue
import dev.gitlive.firebase.firestore.FieldValue.Companion.arrayUnion
import dev.gitlive.firebase.firestore.FirebaseFirestore
import dev.gitlive.firebase.firestore.FirebaseFirestoreException
import dev.gitlive.firebase.firestore.Transaction
import kotlinx.serialization.Serializable

// TODO: Replace by cloud function
class FirestoreInvitationProcessor(
private val firestore: FirebaseFirestore,
private val parties: PartyRepository,
Expand Down Expand Up @@ -60,6 +62,8 @@ class FirestoreInvitationProcessor(
parties.get(this, partyId).isMember(userId)
} catch (e: PartyNotFound) {
false
} catch (e: FirebaseFirestoreException) {
false
}
}
}

0 comments on commit 49a504e

Please sign in to comment.