@moneypot/hub 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -1
- package/dist/src/server/index.js +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type PluginContext = Grafast.Context;
|
|
|
23
23
|
export { defaultPlugins, type PluginIdentity, type UserSessionContext, } from "./server/graphile.config.js";
|
|
24
24
|
export type ConfigureAppArgs = {
|
|
25
25
|
app: Express;
|
|
26
|
-
|
|
26
|
+
superuserPool: ServerContext["superuserPool"];
|
|
27
27
|
};
|
|
28
28
|
export type ServerOptions = {
|
|
29
29
|
configureApp?: (args: ConfigureAppArgs) => void;
|
package/dist/src/server/index.js
CHANGED
|
@@ -57,7 +57,7 @@ export function createHubServer({ configureApp, plugins, exportSchemaSDLPath, ex
|
|
|
57
57
|
const pgl = postgraphile.default(preset);
|
|
58
58
|
const serv = pgl.createServ(grafserv);
|
|
59
59
|
if (configureApp) {
|
|
60
|
-
configureApp({ app: expressServer, context });
|
|
60
|
+
configureApp({ app: expressServer, superuserPool: context.superuserPool });
|
|
61
61
|
}
|
|
62
62
|
const nodeServer = createNodeServer(expressServer);
|
|
63
63
|
nodeServer.on("error", (e) => {
|