Skip to content

Commit 25fdcff

Browse files
committed
fix: filename
1 parent e8025be commit 25fdcff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cli/src/commands/codegen/gqltada.spinner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,28 +126,28 @@ async function gqltadaCodegen(options: {
126126
templateName = "Hasura";
127127
clientName = "hasura";
128128
fileName = "hasura";
129-
output = `${templateName}-schema.graphql`;
129+
output = `${fileName}-schema.graphql`;
130130
break;
131131
case "PORTAL":
132132
gqlEndpoint = options.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT;
133133
templateName = "Portal";
134134
clientName = "portal";
135135
fileName = "portal";
136-
output = `${templateName}-schema.graphql`;
136+
output = `${fileName}-schema.graphql`;
137137
break;
138138
case "THE_GRAPH":
139139
gqlEndpoint = options.env.SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT;
140140
templateName = "TheGraph";
141141
clientName = "theGraph";
142142
fileName = "the-graph";
143-
output = `${templateName}-schema.graphql`;
143+
output = `${fileName}-schema.graphql`;
144144
break;
145145
case "THE_GRAPH_FALLBACK":
146146
gqlEndpoint = options.env.SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK;
147147
templateName = "TheGraphFallback";
148148
clientName = "theGraphFallback";
149149
fileName = "the-graph-fallback";
150-
output = `${templateName}-schema.graphql`;
150+
output = `${fileName}-schema.graphql`;
151151
break;
152152
}
153153

0 commit comments

Comments
 (0)