()
| 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, ""); |