rez_core 2.2.220 → 2.2.222

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
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.220",
3
+ "version": "2.2.222",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -82,7 +82,7 @@ export class WrapperService {
82
82
  bcc: payload.bcc,
83
83
  html: payload.html,
84
84
  // attachments: payload.attachments,
85
- // templateId: templateCode,
85
+ templateId: payload.templateId,
86
86
  variables: payload.variables,
87
87
  };
88
88
  } else {
@@ -73,7 +73,7 @@ export class LoginController {
73
73
  }
74
74
 
75
75
  @Get('google/callback')
76
- @UseGuards(GoogleAuthGuard)
76
+ // @UseGuards(GoogleAuthGuard)
77
77
  async googleAuthRedirect(@Req() req: any, @Res() res: Response) {
78
78
  const {
79
79
  email,
@@ -84,16 +84,18 @@ export class LoginController {
84
84
  fcm_token,
85
85
  } = req.user;
86
86
  const { state } = req.query;
87
-
87
+ console.log('START');
88
88
  const ip =
89
89
  (req.headers['x-forwarded-for'] as string)?.split(',')[0].trim() ||
90
90
  req.socket.remoteAddress;
91
91
 
92
+
92
93
  const userAgent = req.headers['user-agent'] || '';
93
94
  const parser = new UAParser(userAgent);
94
95
  const browser = parser.getBrowser().name || 'Unknown';
95
96
  const os = parser.getOS().name || 'Unknown';
96
97
 
98
+ console.log('BEFORE CHECK');
97
99
  // Check if this is a Gmail configuration request
98
100
  if (
99
101
  state &&
@@ -149,6 +151,9 @@ export class LoginController {
149
151
  os,
150
152
  });
151
153
 
154
+ console.log('AFTER CHECK');
155
+
156
+
152
157
  if (!('accessToken' in data) || !data.accessToken)
153
158
  return res.redirect(
154
159
  `${this.configService.get('BASE_URL')}/auth?email=${email}&error='User not found'`,
@@ -53,7 +53,7 @@ export class CommTemplateRepository {
53
53
  }
54
54
 
55
55
  const whereCondition: any = {
56
- mapped_entity_type: entity_type,
56
+ // mapped_entity_type: entity_type,
57
57
  organization_id,
58
58
  };
59
59