We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1f837 commit 4fc52c2Copy full SHA for 4fc52c2
src/plugins/loader/scripting/network/database.cpp
@@ -40,7 +40,7 @@ LoadScriptingComponent(
40
.addFunction("Query", &PluginDatabase::Query)
41
.endClass();
42
43
- if(state->GetKind() == ContextKinds::Lua) state->RunCode("db = Database(\"default_connection\")");
44
- else if(state->GetKind() == ContextKinds::JavaScript) state->RunCode("globalThis.db = Database(\"default_connection\")");
+ if(state->GetKind() == ContextKinds::Lua) state->RunCode("db = nil");
+ else if(state->GetKind() == ContextKinds::JavaScript) state->RunCode("globalThis.db = null");
45
}
46
)
0 commit comments