Skip to content

Commit 77358f4

Browse files
committed
fix: rename query variable
1 parent 0cf18ed commit 77358f4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

typegate/tests/e2e/self_deploy/self_deploy_test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ import { tg } from "./self_deploy.mjs"; // FIXME: deno coverage issues with tran
77
import { testDir } from "test-utils/dir.ts";
88
import { join } from "std/path/join.ts";
99
import { assertEquals, assertExists } from "std/assert/mod.ts";
10-
import { get_version } from "native";
1110

12-
const version = await get_version();
1311
const port = 7898;
1412
const auth = new BasicAuth("admin", "password");
1513
const gate = `http://localhost:${port}`;
1614
const cwdDir = join(testDir, "e2e", "self_deploy");
1715

1816
Meta.test("deploy and undeploy typegraph without meta-cli", async (_) => {
1917
const { serialized, typegate: gateResponseAdd } = await tgDeploy(tg, {
20-
cliVersion: version,
2118
baseUrl: gate,
2219
auth,
2320
secrets: {},

typegraph/core/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ impl crate::wit::utils::Guest for crate::Lib {
208208

209209
fn gql_deploy_query(params: QueryDeployParams) -> Result<String> {
210210
let query = r"
211-
mutation InsertTypegraph($tg: String!, $secrets: String!, $cliVersion: String!) {
212-
addTypegraph(fromString: $tg, secrets: $secrets, cliVersion: $cliVersion) {
211+
mutation InsertTypegraph($tg: String!, $secrets: String!, $targetVersion: String!) {
212+
addTypegraph(fromString: $tg, secrets: $secrets, targetVersion: $targetVersion) {
213213
name
214214
messages { type text }
215215
migrations { runtime migrations }

0 commit comments

Comments
 (0)