Skip to content

Mistake in function findMatchSecondArriver ? #2

@sabo28

Description

@sabo28

I took a closer look at the matchmaker and found a mistake. In the transaction in the function findMatchSecondArriver is mutableData empty. That means I don't get into the if condition. The docs of firebase also describes that the currentData of a transaction is always empty at the beginning and you should always do an if(currentData equals null) query.
In my opinion firebase's firestore database is a better solution here. With that one can namely work with the current state of the database. Even at the beginning of the transaction.
If I'm wrong please improve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions