@moneypot/hub 1.2.0 → 1.2.1

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.js CHANGED
@@ -63,6 +63,11 @@ export async function startAndListen(options) {
63
63
  }
64
64
  const abortController = new AbortController();
65
65
  let isShuttingDown = false;
66
+ await initialize({
67
+ userDatabaseMigrationsPath: options.userDatabaseMigrationsPath,
68
+ logger: options.logger,
69
+ signal: abortController.signal,
70
+ });
66
71
  const hubServer = createHubServer({
67
72
  configureApp: options.configureApp,
68
73
  plugins: options.plugins,
@@ -95,11 +100,6 @@ export async function startAndListen(options) {
95
100
  };
96
101
  process.on("SIGINT", gracefulShutdown);
97
102
  process.on("SIGTERM", gracefulShutdown);
98
- await initialize({
99
- userDatabaseMigrationsPath: options.userDatabaseMigrationsPath,
100
- logger: options.logger,
101
- signal: abortController.signal,
102
- });
103
103
  return hubServer.listen().then(() => {
104
104
  return {
105
105
  port: config.PORT,
@@ -76,7 +76,6 @@ export function createPreset({ plugins, exportSchemaSDLPath, extraPgSchemas, abo
76
76
  pgDeletedColumnName: "deleted_at",
77
77
  },
78
78
  grafserv: {
79
- dangerouslyAllowAllCORSRequests: true,
80
79
  websockets: true,
81
80
  maskError(error) {
82
81
  return maskError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [