Skip to content

Fix/163 write to db on card flip#165

Merged
XtophB merged 2 commits into
developmentfrom
fix/163-write-to-db-on-card-flip
Jun 11, 2026
Merged

Fix/163 write to db on card flip#165
XtophB merged 2 commits into
developmentfrom
fix/163-write-to-db-on-card-flip

Conversation

@XtophB

@XtophB XtophB commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Context

This PR contains a fix to the DB persistence service.

Description

Originally we would only write to the DB when we change turns. That missed the scenario where the container would crash and players would lose their guessed cards, making the storage of remaining guesses obsolete, as it would always be equal the original guess amount, since we would only save one the turn was over.

Changes in the code base

  • Add logging to ease testing
  • Add persistence call when a card is flipped

Changes outside the code base

N/A

Additional information

N/A

@sonarqubecloud

Copy link
Copy Markdown

@XtophB XtophB requested review from tasaje1 and the-only-queen-anna and removed request for tasaje1 June 11, 2026 14:37

@tasaje1 tasaje1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@the-only-queen-anna the-only-queen-anna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@XtophB XtophB merged commit 0997395 into development Jun 11, 2026
2 checks passed
@XtophB XtophB linked an issue Jun 11, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB speichert Karten nicht richtig ab im Snapshot

3 participants