Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro committed Feb 23, 2024
1 parent 3caf2a1 commit cf8da60
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
8 changes: 0 additions & 8 deletions typegate/deno.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ snapshot[`typegate: find available operations 1`] = `
format: null,
optional: false,
runtime: "prisma",
title: "_317_messagesWithNestedCount[]",
title: "_336_messagesWithNestedCount[]",
type: "list",
},
outputItem: {
Expand Down Expand Up @@ -610,7 +610,7 @@ snapshot[`typegate: find available operations 1`] = `
format: null,
optional: false,
runtime: "prisma",
title: "_22_user_identity[]",
title: "list_324",
type: "list",
},
},
Expand Down Expand Up @@ -661,7 +661,7 @@ snapshot[`typegate: find available operations 1`] = `
format: null,
optional: false,
runtime: "prisma",
title: "_26_messages[]",
title: "list_333",
type: "list",
},
},
Expand Down
1 change: 0 additions & 1 deletion typegraph/core/src/runtimes/prisma/relationship/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ impl PrismaLink {
type_ref.set("target_field", target_field);
}
let res = type_ref.build()?;
eprintln!("type_ref: {:?}", res);
Ok(res)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit cf8da60

Please sign in to comment.