diff --git a/resources/scripts/api/server/getServerDatabases.ts b/resources/scripts/api/server/getServerDatabases.ts index 8ae6542aa..835964c27 100644 --- a/resources/scripts/api/server/getServerDatabases.ts +++ b/resources/scripts/api/server/getServerDatabases.ts @@ -6,7 +6,6 @@ export interface ServerDatabase { username: string; connectionString: string; allowConnectionsFrom: string; - maxConnections: string; password?: string; } @@ -16,7 +15,6 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({ username: data.username, connectionString: `${data.host.address}:${data.host.port}`, allowConnectionsFrom: data.connections_from, - maxConnections: data.max_connections, password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined, }); diff --git a/resources/scripts/components/server/databases/DatabaseRow.tsx b/resources/scripts/components/server/databases/DatabaseRow.tsx index 424f4498c..9adc38519 100644 --- a/resources/scripts/components/server/databases/DatabaseRow.tsx +++ b/resources/scripts/components/server/databases/DatabaseRow.tsx @@ -51,9 +51,6 @@ export default ({ database, className }: Props) => { addError({ key: 'database:delete', message: httpErrorToHuman(error) }); }); }; - if (!database.maxConnections){ - database.maxConnections = "Unlimited" - } return ( @@ -154,10 +151,6 @@ export default ({ database, className }: Props) => {

{database.username}

Username

-
-

{database.maxConnections}

-

Max Connections

-