rez_core 2.2.22 → 2.2.23

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.
@@ -17,6 +17,7 @@ const mailer_1 = require("@nestjs-modules/mailer");
17
17
  const handlebars_adapter_1 = require("@nestjs-modules/mailer/dist/adapters/handlebars.adapter");
18
18
  const email_service_1 = require("./service/email.service");
19
19
  const path_1 = require("path");
20
+ const config_1 = require("@nestjs/config");
20
21
  let NotificationModule = class NotificationModule {
21
22
  };
22
23
  exports.NotificationModule = NotificationModule;
@@ -25,14 +26,16 @@ exports.NotificationModule = NotificationModule = __decorate([
25
26
  imports: [
26
27
  typeorm_1.TypeOrmModule.forFeature([otp_entity_1.Otp]),
27
28
  mailer_1.MailerModule.forRootAsync({
28
- useFactory: () => ({
29
+ imports: [config_1.ConfigModule],
30
+ inject: [config_1.ConfigService],
31
+ useFactory: (configService) => ({
29
32
  transport: {
30
33
  host: 'smtp.gmail.com',
31
34
  port: 465,
32
35
  secure: true,
33
36
  auth: {
34
- user: process.env.EMAIL_USER,
35
- pass: process.env.EMAIL_PASSWORD,
37
+ user: configService.get('EMAIL_USER'),
38
+ pass: configService.get('EMAIL_PASSWORD'),
36
39
  },
37
40
  },
38
41
  defaults: {
@@ -1 +1 @@
1
- {"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAiCrB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IA/B9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,CAAC,CAAC;YAC/B,qBAAY,CAAC,YAAY,CAAC;gBACxB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;oBACjB,SAAS,EAAE;wBACT,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,GAAG;wBACT,MAAM,EAAE,IAAI;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;4BAC5B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;yBACjC;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,GAAG;qBACnD;oBACD,QAAQ,EAAE;wBACR,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,IAAI,sCAAiB,EAAE;wBAChC,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF,CAAC;aACH,CAAC;SACH;QACD,SAAS,EAAE,CAAC,wBAAU,EAAE,8BAAa,EAAE,4BAAY,CAAC;QACpD,OAAO,EAAE,CAAC,wBAAU,EAAE,4BAAY,CAAC;QACnC,WAAW,EAAE,CAAC,8BAAa,CAAC;KAC7B,CAAC;GACW,kBAAkB,CAAG"}
1
+ {"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAmCtD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAjC9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,CAA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