Skip to content

Comments

637 Feature: Daily Player Emotions#775

Open
CapoMK25 wants to merge 3 commits intodevfrom
637-feature-request-player-data-should-contain-information-about-the-daily-emotions-for-the-past-week
Open

637 Feature: Daily Player Emotions#775
CapoMK25 wants to merge 3 commits intodevfrom
637-feature-request-player-data-should-contain-information-about-the-daily-emotions-for-the-past-week

Conversation

@CapoMK25
Copy link
Collaborator

Brief description

The UI Team lead Niko opened an issue last year regarding adding emotions to the backend API. This has now been implemented, unit tested and tested on Postman as well on this PR.

Change list

  • Added PlayerEmotion enum and updated PlayerSchema with a history array.

  • Implemented GET /player/emotioncheck to let the client know if the daily popup is needed.

  • Implemented POST /player/emotion to record daily sentiment (limited to once per day).

  • Fix: Resolved path alias issues in tests by switching to relative imports in the Schema.

  • Fix: Resolved controller routing collision by reordering static routes above dynamic parameters.

  • Fix: Aligned controller with req.user.player_id to ensure correct database targeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant