@ccci/micro-server 1.0.24 → 1.0.26

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/index.js CHANGED
@@ -87563,6 +87563,9 @@ class DatabaseConnector {
87563
87563
  static sync(modelName, force = false) {
87564
87564
  DatabaseConnector.connection.models[modelName].sync({ force });
87565
87565
  }
87566
+ static disconnect() {
87567
+ DatabaseConnector.connection.close();
87568
+ }
87566
87569
  }
87567
87570
 
87568
87571
  // src/utils/RouterFactory.ts
@@ -6,7 +6,7 @@ export type ApplicationOptionType = {
6
6
  websocketPort?: number;
7
7
  websocketDir?: string;
8
8
  enableRedis?: boolean;
9
- ebableMinio?: boolean;
9
+ enableMinio?: boolean;
10
10
  enableWebSocket?: boolean;
11
11
  enableFirebase?: boolean;
12
12
  enableEmail?: boolean;
@@ -19,5 +19,6 @@ export default class DatabaseConnector {
19
19
  connect(connection: Sequelize): Promise<void>;
20
20
  static getModel(modelName: string): ModelStatic<Model>;
21
21
  static sync(modelName: string, force?: boolean): void;
22
+ static disconnect(): void;
22
23
  }
23
24
  //# sourceMappingURL=DatabaseConnector.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",