Skip to content

Commit

Permalink
fix error structure
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Oct 28, 2024
1 parent 1083e23 commit 920d35c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/DboBuilder/getSubscribeRelatedTables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ export async function getSubscribeRelatedTables(this: ViewHandler, { filter, loc

try {
const { count } = await this.db.oneOrNone(`
WITH ${asName(tableName)} AS (
SELECT *
FROM ${asName(tableName)}
LIMIT 0
)
SELECT COUNT(*) as count
FROM (
${def}
) prostgles_view_ref_table_test
`);
WITH ${asName(tableName)} AS (
SELECT *
FROM ${asName(tableName)}
LIMIT 0
)
SELECT COUNT(*) as count
FROM (
${def}
) prostgles_view_ref_table_test
`);

const relatedTableSubscription = {
tableName: tableName!,
Expand Down

0 comments on commit 920d35c

Please sign in to comment.