refactor: system metadata (#8923)

refactor(server): system metadata
This commit is contained in:
Jason Rasmussen 2024-04-19 20:36:15 -04:00 committed by GitHub
parent 78c7ff855d
commit 171b6bb0a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1023 additions and 163 deletions

View file

@ -51,7 +51,9 @@ export class ServerInfoService {
const featureFlags = await this.getFeatures();
if (featureFlags.configFile) {
await this.setAdminOnboarding();
await this.systemMetadataRepository.set(SystemMetadataKey.ADMIN_ONBOARDING, {
isOnboarded: true,
});
}
}
@ -105,10 +107,6 @@ export class ServerInfoService {
};
}
setAdminOnboarding(): Promise<void> {
return this.systemMetadataRepository.set(SystemMetadataKey.ADMIN_ONBOARDING, { isOnboarded: true });
}
async getStatistics(): Promise<ServerStatsResponseDto> {
const userStats: UserStatsQueryResponse[] = await this.userRepository.getUserStats();
const serverStats = new ServerStatsResponseDto();