Skip to content

Commit

Permalink
Fix subscriptions including multichain metadata tables
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Nov 27, 2024
1 parent 93ffb0a commit 8a20371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query/src/graphql/plugins/PgSubscriptionPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const PgSubscriptionPlugin = makeExtendSchemaPlugin((build) => {

// Generate subscription fields for all database tables
(pgIntrospectionResultsByKind as PgIntrospectionResultsByKind).class.forEach((table) => {
if (!table.namespace || table.name === '_metadata') return;
if (!table.namespace || table.name.includes('_metadata')) return;

const field = inflection.allRows(table);
const type = inflection.tableType(table);
Expand Down

0 comments on commit 8a20371

Please sign in to comment.