refactor(server): use feature model (#9932)

This commit is contained in:
forehalo
2025-02-05 10:27:26 +00:00
parent 0ff8d3af6f
commit 7826e2b7c8
121 changed files with 1723 additions and 3826 deletions

View File

@@ -19,7 +19,9 @@ import type { AuthService } from '../services/auth';
import type { UserQuotaStore } from '../stores/user-quota';
export class UserQuota extends Entity {
quota$ = new LiveData<NonNullable<QuotaQuery['currentUser']>['quota']>(null);
quota$ = new LiveData<NonNullable<QuotaQuery['currentUser']>['quota'] | null>(
null
);
/** Used storage in bytes */
used$ = new LiveData<number | null>(null);
/** Formatted used storage */

View File

@@ -74,7 +74,7 @@ export class WorkspaceQuota extends Entity {
this.workspaceService.workspace.id,
signal
);
return { quota: data, used: data.usedSize };
return { quota: data, used: data.usedStorageQuota };
}).pipe(
backoffRetry({
when: isNetworkError,