@aldb2b/common 1.0.510 → 1.0.511
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.
|
@@ -12,17 +12,31 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
12
12
|
const connection_enum_1 = require("../enums/connection.enum");
|
|
13
13
|
const company_models_module_1 = require("./models/companies/company-models.module");
|
|
14
14
|
const event_models_module_1 = require("./models/events/event-models.module");
|
|
15
|
+
const config_1 = require("@nestjs/config");
|
|
15
16
|
let ModelsModule = class ModelsModule {
|
|
16
17
|
};
|
|
17
18
|
exports.ModelsModule = ModelsModule;
|
|
18
19
|
exports.ModelsModule = ModelsModule = __decorate([
|
|
19
20
|
(0, common_1.Module)({
|
|
20
21
|
imports: [
|
|
21
|
-
|
|
22
|
+
config_1.ConfigModule.forRoot({
|
|
23
|
+
isGlobal: true,
|
|
24
|
+
}),
|
|
25
|
+
mongoose_1.MongooseModule.forRootAsync({
|
|
22
26
|
connectionName: connection_enum_1.ConnectionEnum.COMPANY_CONNECTION,
|
|
27
|
+
imports: [config_1.ConfigModule],
|
|
28
|
+
useFactory: async (configService) => ({
|
|
29
|
+
uri: configService.get('MONGO_URI_COMPANY'),
|
|
30
|
+
}),
|
|
31
|
+
inject: [config_1.ConfigService],
|
|
23
32
|
}),
|
|
24
|
-
mongoose_1.MongooseModule.
|
|
33
|
+
mongoose_1.MongooseModule.forRootAsync({
|
|
25
34
|
connectionName: connection_enum_1.ConnectionEnum.EVENT_CONNECTION,
|
|
35
|
+
imports: [config_1.ConfigModule],
|
|
36
|
+
useFactory: async (configService) => ({
|
|
37
|
+
uri: configService.get('MONGO_URI_EVENT'),
|
|
38
|
+
}),
|
|
39
|
+
inject: [config_1.ConfigService],
|
|
26
40
|
}),
|
|
27
41
|
company_models_module_1.CompanyModelsModule,
|
|
28
42
|
event_models_module_1.EventModelsModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.module.js","sourceRoot":"","sources":["../../src/models/models.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuC;AACvC,+CAAiD;AACjD,8DAAyD;AACzD,oFAA8E;AAC9E,6EAAuE;
|
|
1
|
+
{"version":3,"file":"models.module.js","sourceRoot":"","sources":["../../src/models/models.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuC;AACvC,+CAAiD;AACjD,8DAAyD;AACzD,oFAA8E;AAC9E,6EAAuE;AACvE,2CAA4D;AA2BrD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAzBxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,CAAC;gBACnB,QAAQ,EAAE,IAAI;aACf,CAAC;YACF,yBAAc,CAAC,YAAY,CAAC;gBAC1B,cAAc,EAAE,gCAAc,CAAC,kBAAkB;gBACjD,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE,CAAC,CAAC;oBACnD,GAAG,EAAE,aAAa,CAAC,GAAG,CAAS,mBAAmB,CAAC;iBACpD,CAAC;gBACF,MAAM,EAAE,CAAC,sBAAa,CAAC;aACxB,CAAC;YACF,yBAAc,CAAC,YAAY,CAAC;gBAC1B,cAAc,EAAE,gCAAc,CAAC,gBAAgB;gBAC/C,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE,CAAC,CAAC;oBACnD,GAAG,EAAE,aAAa,CAAC,GAAG,CAAS,iBAAiB,CAAC;iBAClD,CAAC;gBACF,MAAM,EAAE,CAAC,sBAAa,CAAC;aACxB,CAAC;YACF,2CAAmB;YACnB,uCAAiB;SAClB;KACF,CAAC;GACW,YAAY,CAAG"}
|