From 9f42496dd9e720024fb7c64150a647ff05071037 Mon Sep 17 00:00:00 2001 From: Natoandro Date: Fri, 23 Feb 2024 12:05:05 +0300 Subject: [PATCH] fix test failure --- typegate/deno.lock | 8 -------- typegraph/core/src/runtimes/prisma/relationship/mod.rs | 1 - .../core/src/runtimes/prisma/type_generation/out_type.rs | 2 +- .../runtimes/prisma/type_generation/with_nested_count.rs | 2 +- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/typegate/deno.lock b/typegate/deno.lock index f7d7b0d2f0..2a87c2194a 100644 --- a/typegate/deno.lock +++ b/typegate/deno.lock @@ -1106,13 +1106,5 @@ "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/typegraph/visitor.ts": "854f2dd1adadc62ea2050f6e0f293c88f76d4feefb7620bcc490049fb8967043", "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/types.ts": "1857e6bf96b0642e15352e10dd4e175c4983edc421868ae0158ce271e075926d", "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/utils.ts": "8a34944dc326d1759c67fcdd4a714f99838d5eac040773bcdb7287a00118923b" - }, - "workspace": { - "packageJson": { - "dependencies": [ - "npm:chance@^1.1.11", - "npm:yarn@^1.22.19" - ] - } } } diff --git a/typegraph/core/src/runtimes/prisma/relationship/mod.rs b/typegraph/core/src/runtimes/prisma/relationship/mod.rs index c08b096458..81176d7d63 100644 --- a/typegraph/core/src/runtimes/prisma/relationship/mod.rs +++ b/typegraph/core/src/runtimes/prisma/relationship/mod.rs @@ -95,7 +95,6 @@ impl PrismaLink { type_ref.set("target_field", target_field); } let res = type_ref.build()?; - eprintln!("type_ref: {:?}", res); Ok(res) } } diff --git a/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs b/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs index 1a0232ccf7..91fd443bdf 100644 --- a/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs +++ b/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs @@ -67,7 +67,7 @@ impl TypeGen for OutType { } Property::Unmanaged(type_id) => { // just forward the original type - builder.prop(key, remove_injections_recursive(*type_id)?); + builder.prop(key, *type_id); } } } diff --git a/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs b/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs index 2f3af652dd..5bae80436a 100644 --- a/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs +++ b/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs @@ -76,7 +76,7 @@ impl TypeGen for WithNestedCount { } Property::Unmanaged(type_id) => { - builder.prop(key, remove_injections_recursive(*type_id)?); + builder.prop(key, *type_id); } } }