Skip to content

fix(api): keep a guild's stored exp history when the cached guild doesn't match - #1017

Merged
ugcodrr merged 2 commits into
mainfrom
fix/guild-switch-exp-history
Nov 1, 2026
Merged

ugcodrr merged 2 commits into
mainfrom
fix/guild-switch-exp-history

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description: When a guild lookup found a saved guild that isn't the one Hypixel returned (often /guild by player after a guild switch), the API saved Hypixel's guild with only its last 7 days of exp, wiping the up to 30 days Statsify had stored.

Testing: point a member of guild B at guild A, expire A, then GET /guild?guild=<member uuid>&type=PLAYER. B's members keep their older expHistoryDays.

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 1, 2026 7:06pm UTC

@github-actions github-actions Bot added the api label Oct 22, 2026

@momenazhar momenazhar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approved

@ugcodrr
ugcodrr merged commit 194409d into main Nov 1, 2026
4 checks passed
@ugcodrr
ugcodrr deleted the fix/guild-switch-exp-history branch November 1, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants