Skip to content

Commit 66ea526

Browse files
authored
fix(hasura): live provider uses hasura-default as default naming convention (#6784)
1 parent 2143df6 commit 66ea526

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.changeset/serious-wolves-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@refinedev/hasura": patch
3+
---
4+
5+
Hasura live provider now uses hasura-default as default naming convention

packages/hasura/src/liveProvider/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ export const liveProvider = (
5151
);
5252
}
5353

54-
const genereteSubscription = subscriptions[subscriptionType];
54+
const generateSubscription = subscriptions[subscriptionType];
5555

5656
const idType = getIdType(resource, options?.idType);
57-
const namingConvention = options?.namingConvention;
58-
const { query, variables, operation } = genereteSubscription({
57+
const namingConvention = options?.namingConvention ?? "hasura-default";
58+
const { query, variables, operation } = generateSubscription({
5959
ids,
6060
id,
6161
idType,

0 commit comments

Comments
 (0)