accounts: invalidate user cache in more/all places

using app.userSummary as a source of relevant storage places and things
to look for.
This commit is contained in:
Harvey Tindall
2025-09-01 21:28:56 +01:00
parent 6ebc7d18bf
commit d88194b9bd
6 changed files with 19 additions and 0 deletions

View File

@@ -796,6 +796,7 @@ func (app *appContext) GetMyReferral(gc *gin.Context) {
inv.ValidTill = inv.Created.Add(REFERRAL_EXPIRY_DAYS * 24 * time.Hour)
app.storage.SetInvitesKey(inv.Code, inv)
}
app.InvalidateWebUserCache()
gc.JSON(200, GetMyReferralRespDTO{
Code: inv.Code,
RemainingUses: inv.RemainingUses,