@digitaldefiance/express-suite-starter 2.4.14 → 2.4.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Application,
|
|
3
|
-
|
|
3
|
+
MongoApplicationBase,
|
|
4
4
|
IFailableResult,
|
|
5
5
|
IServerInitResult,
|
|
6
6
|
DummyEmailService,
|
|
@@ -56,7 +56,7 @@ export class App<
|
|
|
56
56
|
constructor(
|
|
57
57
|
environment: Environment<Types.ObjectId>,
|
|
58
58
|
databaseInitFunction: (
|
|
59
|
-
application:
|
|
59
|
+
application: MongoApplicationBase<Types.ObjectId, ModelDocMap, TInitResults>,
|
|
60
60
|
) => Promise<IFailableResult<TInitResults>>,
|
|
61
61
|
initResultHashFunction: (initResults: TInitResults) => string,
|
|
62
62
|
constants: TConstants = Constants as TConstants,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseApplication,
|
|
3
|
+
MongoApplicationBase,
|
|
4
|
+
MongooseDocumentStore,
|
|
3
5
|
DatabaseInitializationService,
|
|
4
6
|
Environment,
|
|
5
7
|
IServerInitResult,
|
|
@@ -83,7 +85,14 @@ async function main() {
|
|
|
83
85
|
'.env',
|
|
84
86
|
);
|
|
85
87
|
const env: Environment = new Environment(envDir, true);
|
|
86
|
-
const
|
|
88
|
+
const store = new MongooseDocumentStore(
|
|
89
|
+
getSchemaMap,
|
|
90
|
+
DatabaseInitializationService.initUserDb,
|
|
91
|
+
DatabaseInitializationService.serverInitResultHash,
|
|
92
|
+
env,
|
|
93
|
+
AppConstants,
|
|
94
|
+
);
|
|
95
|
+
const app = new MongoApplicationBase(env, store, AppConstants);
|
|
87
96
|
context.languageContextSpace = 'admin';
|
|
88
97
|
const shouldDropDatabase = process.argv.includes('--drop');
|
|
89
98
|
debugLog(
|