Skip to content

Commit

Permalink
Fix case on primary_key for typescript
Browse files Browse the repository at this point in the history
Fix name of python sdk package for python
  • Loading branch information
dbrinkmann-citadel committed Jul 7, 2023
1 parent 1483d71 commit 2350302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/cli/src/subcommands/generate/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ fn autogen_python_product_table_common(
writeln!(output).unwrap();
writeln!(
output,
"from spacetimedb_python_sdk.spacetimedb_client import SpacetimeDBClient"
"from spacetimedb_sdk.spacetimedb_client import SpacetimeDBClient"
)
.unwrap();
} else {
Expand Down Expand Up @@ -545,7 +545,7 @@ pub fn autogen_python_reducer(ctx: &GenCtx, reducer: &ReducerDef) -> String {

writeln!(
output,
"from spacetimedb_python_sdk.spacetimedb_client import SpacetimeDBClient"
"from spacetimedb_sdk.spacetimedb_client import SpacetimeDBClient"
)
.unwrap();
writeln!(output).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/generate/typescript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ fn autogen_typescript_product_table_common(
.as_ref()
.expect("autogen'd tuples should have field names")
.replace("r#", "");
format!("\"{}\"", field_name)
format!("\"{}\"", field_name.to_case(Case::Camel))
})
{
writeln!(
Expand Down

0 comments on commit 2350302

Please sign in to comment.