MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / initialize

Method initialize

panel/src/app/service/user_service.ts:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 public readonly objects: Map<string, User> = new Map();
17
18 async initialize() {
19 for (const uuid of await Storage.getStorage().list("User")) {
20 const user = (await Storage.getStorage().load("User", User, uuid)) as User;
21 this.objects.set(uuid, user);
22 }
23 logger.info($t("TXT_CODE_systemUser.userCount", { n: this.objects.size }));
24 }
25
26 async create(config: IUser): Promise<User> {
27 const newUuid = v4().replace(/-/gim, "");

Callers 1

mainFunction · 0.45

Calls 6

$tFunction · 0.90
getStorageMethod · 0.80
infoMethod · 0.80
listMethod · 0.65
loadMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected