Skip to content

All or nothing logic for createNewBand #10

@aleguy02

Description

@aleguy02

Currently, creating a new band has the potential to fail halfway through, resulting in a band being created but not being added to the user's band_names or band_ids arrays, essentially creating a dead floating band. I need to find a way to ensure that either ALL the logic is executed or none of it is.

I was messing around with ChatGPT earlier and stumbled on something in Firestore called transactions, I'll look into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions