diff --git a/schema.gql b/schema.gql index c79524e3..41a4ae18 100644 --- a/schema.gql +++ b/schema.gql @@ -842,10 +842,8 @@ input UpdateRoutingFeesParams { } type UserBackupInfo { - available_size: String! last_update: String last_update_size: String - remaining_size: String! total_size_saved: String! } diff --git a/src/client/src/graphql/queries/__generated__/getAmbossUser.generated.tsx b/src/client/src/graphql/queries/__generated__/getAmbossUser.generated.tsx index 130c19d0..f6be5c33 100644 --- a/src/client/src/graphql/queries/__generated__/getAmbossUser.generated.tsx +++ b/src/client/src/graphql/queries/__generated__/getAmbossUser.generated.tsx @@ -20,8 +20,6 @@ export type GetAmbossUserQuery = { last_update?: string | null; last_update_size?: string | null; total_size_saved: string; - available_size: string; - remaining_size: string; }; ghost: { __typename?: 'UserGhostInfo'; username?: string | null }; } | null; @@ -39,8 +37,6 @@ export const GetAmbossUserDocument = gql` last_update last_update_size total_size_saved - available_size - remaining_size } ghost { username diff --git a/src/client/src/graphql/queries/getAmbossUser.ts b/src/client/src/graphql/queries/getAmbossUser.ts index 105fb58b..75f2afb6 100644 --- a/src/client/src/graphql/queries/getAmbossUser.ts +++ b/src/client/src/graphql/queries/getAmbossUser.ts @@ -12,8 +12,6 @@ export const GET_AMBOSS_USER = gql` last_update last_update_size total_size_saved - available_size - remaining_size } ghost { username diff --git a/src/client/src/graphql/types.ts b/src/client/src/graphql/types.ts index 771a9925..56e7f0ec 100644 --- a/src/client/src/graphql/types.ts +++ b/src/client/src/graphql/types.ts @@ -1204,10 +1204,8 @@ export type UpdateRoutingFeesParams = { export type UserBackupInfo = { __typename?: 'UserBackupInfo'; - available_size: Scalars['String']['output']; last_update?: Maybe; last_update_size?: Maybe; - remaining_size: Scalars['String']['output']; total_size_saved: Scalars['String']['output']; }; diff --git a/src/client/src/views/amboss/Backups.tsx b/src/client/src/views/amboss/Backups.tsx index 06f850ac..41a83b88 100644 --- a/src/client/src/views/amboss/Backups.tsx +++ b/src/client/src/views/amboss/Backups.tsx @@ -47,16 +47,10 @@ export const AmbossBackupsView = () => { if (!user) return null; const { - backups: { - remaining_size, - total_size_saved, - last_update, - last_update_size, - }, + backups: { total_size_saved, last_update, last_update_size }, } = user; const total = Number(total_size_saved) / 1e6; - const remaining = Number(remaining_size) / 1e6; return ( <> @@ -74,10 +68,6 @@ export const AmbossBackupsView = () => { 'Total Size Saved', `${numeral(total).format('0.[0000]')} MB` )} - {renderLine( - 'Remaining Size Available', - `${numeral(remaining).format('0.[0000]')} MB` - )} ); diff --git a/src/server/modules/api/amboss/amboss.gql.ts b/src/server/modules/api/amboss/amboss.gql.ts index 88699fe9..7e91cb79 100644 --- a/src/server/modules/api/amboss/amboss.gql.ts +++ b/src/server/modules/api/amboss/amboss.gql.ts @@ -9,10 +9,8 @@ export const getUserQuery = gql` upgradable } backups { - available_size last_update last_update_size - remaining_size total_size_saved } ghost { diff --git a/src/server/modules/api/amboss/amboss.types.ts b/src/server/modules/api/amboss/amboss.types.ts index 6853b103..98ff8ede 100644 --- a/src/server/modules/api/amboss/amboss.types.ts +++ b/src/server/modules/api/amboss/amboss.types.ts @@ -20,12 +20,6 @@ export class UserBackupInfo { @Field() total_size_saved: string; - - @Field() - available_size: string; - - @Field() - remaining_size: string; } @ObjectType()