@ccci/micro-server 1.0.86 → 1.0.88
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
|
@@ -119177,7 +119177,7 @@ class ApplicationServer {
|
|
|
119177
119177
|
ApplicationServer.app.get("/", (req, resp) => {
|
|
119178
119178
|
return resp.sendFile(path4.resolve("index.html"));
|
|
119179
119179
|
});
|
|
119180
|
-
await RouterFactory.init(ApplicationServer.app, process.cwd(),
|
|
119180
|
+
await RouterFactory.init(ApplicationServer.app, process.cwd(), options?.routeDir, options?.routeContext);
|
|
119181
119181
|
const server = ApplicationServer.app.listen(port, async () => {
|
|
119182
119182
|
Logger.info(`API Sever ready at: http://127.0.0.1:${port}\n`);
|
|
119183
119183
|
if (options?.enableWebSocket) {
|
|
@@ -119681,13 +119681,14 @@ class BaseModel extends Model {
|
|
|
119681
119681
|
}
|
|
119682
119682
|
static getCommonAssociations() {
|
|
119683
119683
|
}
|
|
119684
|
-
static initialize(fields,
|
|
119684
|
+
static initialize(fields, tableName, schema) {
|
|
119685
119685
|
this.init({
|
|
119686
119686
|
...fields,
|
|
119687
119687
|
...this.getCommonAttributes()
|
|
119688
119688
|
}, {
|
|
119689
119689
|
sequelize: DatabaseConnector.getConnection(),
|
|
119690
|
-
tableName
|
|
119690
|
+
tableName,
|
|
119691
|
+
schema: schema || process.env.DB_SCHEMA,
|
|
119691
119692
|
paranoid: true
|
|
119692
119693
|
});
|
|
119693
119694
|
}
|
|
@@ -22,6 +22,6 @@ export default class BaseModel extends Model implements IBaseModel {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
static getCommonAssociations(): void;
|
|
25
|
-
static initialize(fields: ModelAttributes,
|
|
25
|
+
static initialize(fields: ModelAttributes, tableName: string, schema?: string): void;
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=BaseModel.d.ts.map
|