Skip to content

Commit

Permalink
add prefix to field type in include specta impls
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Jan 5, 2023
1 parent c3161ab commit de2b9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/generator/models/include_select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fn model_macro<'a>(
let specta_impl = cfg!(feature = "rspc").then(|| {
let object_scalar_fields = base_fields.clone().filter_map(|f| {
let field_name_str = f.name();
let field_type = f.type_tokens(quote!());
let field_type = f.type_tokens(quote!(crate::#module_path::));

f.as_scalar_field().map(|_|
quote!(#specta::ObjectField {
Expand Down

0 comments on commit de2b9a9

Please sign in to comment.