Skip to content

Commit 16840d3

Browse files
committed
chore: change var naming
1 parent cf912d6 commit 16840d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

studio/pages/project/[ref]/settings/database.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,16 @@ const GeneralSettings: FC<any> = ({ projectRef }) => {
303303
const DB_FIELDS = ['db_host', 'db_name', 'db_port', 'db_user', 'inserted_at']
304304
const connectionInfo = pluckObjectFields(formModel, DB_FIELDS)
305305

306-
const defaultUriConnString =
306+
const uriConnString =
307307
`postgresql://${connectionInfo.db_user}:[YOUR-PASSWORD]@` +
308308
`${connectionInfo.db_host}:${connectionInfo.db_port.toString()}` +
309309
`/${connectionInfo.db_name}`
310310
const golangConnString =
311311
`user=${connectionInfo.db_user} password=[YOUR-PASSWORD] ` +
312312
`host=${connectionInfo.db_host} port=${connectionInfo.db_port.toString()}` +
313313
` dbname=${connectionInfo.db_name}`
314-
const defaultPsqlConnString =
315-
`psql -h db.${connectionInfo.db_host}.supabase.co -p ` +
314+
const psqlConnString =
315+
`psql -h ${connectionInfo.db_host} -p ` +
316316
`${connectionInfo.db_port.toString()} -d ${connectionInfo.db_name} ` +
317317
`-U ${connectionInfo.db_user}`
318318

@@ -396,12 +396,12 @@ const GeneralSettings: FC<any> = ({ projectRef }) => {
396396
<Tabs type="underlined">
397397
{/* @ts-ignore */}
398398
<Tabs.Panel id="psql" label="PSQL">
399-
<Input copy readOnly disabled value={defaultPsqlConnString} />
399+
<Input copy readOnly disabled value={psqlConnString} />
400400
</Tabs.Panel>
401401

402402
{/* @ts-ignore */}
403403
<Tabs.Panel id="uri" label="URI">
404-
<Input copy readOnly disabled value={defaultUriConnString} />
404+
<Input copy readOnly disabled value={uriConnString} />
405405
</Tabs.Panel>
406406

407407
{/* @ts-ignore */}
@@ -442,7 +442,7 @@ const GeneralSettings: FC<any> = ({ projectRef }) => {
442442

443443
{/* @ts-ignore */}
444444
<Tabs.Panel id="nodejs" label="Nodejs">
445-
<Input copy readOnly disabled value={defaultUriConnString} />
445+
<Input copy readOnly disabled value={uriConnString} />
446446
</Tabs.Panel>
447447

448448
{/* @ts-ignore */}

0 commit comments

Comments
 (0)