@adaptic/backend-legacy 0.0.10 → 0.0.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.cjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptic/backend-legacy",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
package/server.cjs CHANGED
@@ -4,6 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  require("reflect-metadata");
7
+ const dotenv_1 = __importDefault(require("dotenv"));
8
+ dotenv_1.default.config();
7
9
  const express_1 = __importDefault(require("express"));
8
10
  const server_1 = require("@apollo/server");
9
11
  const express4_1 = require("@as-integrations/express4");
@@ -19,8 +21,6 @@ const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
19
21
  const auth_1 = require("./middleware/auth.cjs");
20
22
  const prismaClient_1 = __importDefault(require("./prismaClient.cjs"));
21
23
  const child_process_1 = require("child_process");
22
- const dotenv_1 = __importDefault(require("dotenv"));
23
- dotenv_1.default.config();
24
24
  let dbUnreachableCount = 0;
25
25
  let lastRestartAttempt = 0;
26
26
  async function restartDatabase() {