Skip to content

Commit

Permalink
Fix subscriptions including multichain metadata tables (#2609)
Browse files Browse the repository at this point in the history
* Fix subscriptions including multichain metadata tables

* Update changelog
  • Loading branch information
stwiname authored Nov 27, 2024
1 parent 93ffb0a commit 6ba1ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/query/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Crash with query service subscriptions on multichain projects (#2609)

## [2.17.0] - 2024-11-25
### Changed
Expand Down
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 6ba1ff1

Please sign in to comment.