Skip to content

Commit

Permalink
fix: reverted breaking change with always creating a schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Jan 18, 2023
1 parent 960048f commit 68bee86
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (gj *graphjin) _initDiscover() (err error) {
}
}

if !gj.prod {
if !gj.prod && gj.conf.EnableSchema {
var buf bytes.Buffer
if err := writeSchema(gj.dbinfo, &buf); err != nil {
return err
Expand Down
1 change: 0 additions & 1 deletion core/dbint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ func TestMain(m *testing.M) {
con, err := gnomock.Start(
v.preset,
gnomock.WithLogWriter(os.Stdout))

if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphjin",
"version": "2.0.25",
"version": "2.0.26",
"description": "GraphJin - Build APIs in 5 minutes with GraphQL",
"type": "module",
"main": "./wasm/js/graphjin.js",
Expand Down
Binary file modified wasm/graphjin.wasm
Binary file not shown.

1 comment on commit 68bee86

@vercel
Copy link

@vercel vercel bot commented on 68bee86 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.