Skip to content

Commit 17ac6d4

Browse files
committed
style: add missing alignment
1 parent 0c28370 commit 17ac6d4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

adminforth/dataConnectors/postgres.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
7070
}
7171

7272
private async hasPgCascadeFk(tableName: string, schema = 'public'): Promise<boolean> {
73-
const res = await this.client.query(
74-
`
75-
SELECT 1
76-
FROM pg_constraint
77-
WHERE contype = 'f'
78-
AND confrelid = ($2 || '.' || $1)::regclass
79-
AND confdeltype = 'c'
80-
LIMIT 1
81-
`,
82-
[tableName, schema]
83-
);
84-
85-
return res.rowCount > 0;
86-
}
73+
const res = await this.client.query(
74+
`
75+
SELECT 1
76+
FROM pg_constraint
77+
WHERE contype = 'f'
78+
AND confrelid = ($2 || '.' || $1)::regclass
79+
AND confdeltype = 'c'
80+
LIMIT 1
81+
`,
82+
[tableName, schema]
83+
);
84+
85+
return res.rowCount > 0;
86+
}
8787

8888
async discoverFields(resource) {
8989

0 commit comments

Comments
 (0)