feat(accounts): persist EULA acceptance

Persist the accepted EULA version before responding and return both
agreement fields in the profile. Respond to matching heartbeats.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 09:05:31 +08:00
1 parent 6233a64835
commit ac2c185d4c
7 files changed
+108 -10

No files matched your search

@@ -23,4 +23,12 @@ export class PlayerProfiles {
this.#saves.saveProfile(userId, created);
return created;
}
/** Change the player's profile and write it to the save before returning it. */
update(userId: string, change: (profile: BlkBlock) => void): BlkBlock {
const profile = this.profileOf(userId);
change(profile);
this.#saves.saveProfile(userId, profile);
return profile;
}
}