Skip to content

Commit

Permalink
NEOS-362: update connection without checking is its a valid connection (
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova authored Nov 27, 2023
1 parent 33eba6f commit 6367e44
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
6 changes: 0 additions & 6 deletions frontend/app/connections/[id]/components/MysqlForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ export default function MysqlForm(props: Props) {

async function onSubmit(values: MysqlFormValues) {
try {
const checkResp = await checkMysqlConnection(values.db);

if (!checkResp.isConnected) {
return;
}

const connectionResp = await updateMysqlConnection(
connectionId,
values.connectionName,
Expand Down
5 changes: 0 additions & 5 deletions frontend/app/connections/[id]/components/PostgresForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ export default function PostgresForm(props: Props) {

async function onSubmit(values: PostgresFormValues) {
try {
const checkResp = await checkPostgresConnection(values.db);

if (!checkResp.isConnected) {
return;
}
const connectionResp = await updatePostgresConnection(
connectionId,
values.connectionName,
Expand Down
7 changes: 0 additions & 7 deletions frontend/app/new/connection/mysql/MysqlForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ export default function MysqlForm() {
return;
}
try {
const checkResp = await checkMysqlConnection(values.db);
setCheckResp(checkResp);

if (!checkResp.isConnected) {
return;
}

const connection = await createMysqlConnection(
values.db,
values.connectionName,
Expand Down
7 changes: 0 additions & 7 deletions frontend/app/new/connection/postgres/PostgresForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ export default function PostgresForm() {
}

try {
const checkResp = await checkPostgresConnection(values.db);
setCheckResp(checkResp);

if (!checkResp.isConnected) {
return;
}

const connection = await createPostgresConnection(
values.db,
values.connectionName,
Expand Down

0 comments on commit 6367e44

Please sign in to comment.