This commit is contained in:
2025-07-27 19:49:35 -04:00
parent 2302290d34
commit 941c8400c0
23 changed files with 293 additions and 50 deletions

View File

@@ -2,6 +2,7 @@ import KV from "../persistence/kv.ts";
import { ProfileRole } from "../platforms/base.ts";
import { type ServerBase } from "../server.ts";
import { type SignalRSocketHandler } from "../socket/signalr/socket.ts";
import { ProfileAvatarManager } from "./content/Avatar.ts";
import { ProfileSettingsManager } from "./content/Settings.ts";
import ProfileManagerBase from "./manager.ts";
import { recNetAccountSchema, SelfAccount, type RecNetAccount } from "./types/profile.ts";
@@ -17,6 +18,7 @@ class Profile {
#selfAcc: SelfAccount;
Settings: ProfileSettingsManager;
Avatar: ProfileAvatarManager;
constructor(acc: SelfAccount, kv: KV, server: ServerBase) {
this.#id = acc.accountId;
@@ -25,6 +27,7 @@ class Profile {
this.#server = server;
this.Settings = new ProfileSettingsManager(this, this.#kv);
this.Avatar = new ProfileAvatarManager(this, this.#kv);
}
async #saveSelfAcc() {