rez_core 2.2.218 → 2.2.220

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.218",
3
+ "version": "2.2.220",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -14,7 +14,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
14
14
  'openid',
15
15
  'email',
16
16
  'profile',
17
- 'https://www.googleapis.com/auth/gmail.send',
18
17
  ],
19
18
  accessType: 'offline', // good: gets refresh_token on first consent
20
19
  includeGrantedScopes: true, // optional, keeps prior grants
@@ -87,6 +87,6 @@ export class OrganizationData {
87
87
  @Column({ name: 'wbs_code', nullable: true })
88
88
  wbs_code: string;
89
89
 
90
- @Column({ name: 'subdomain', nullable: true })
91
- subdomain: string;
90
+ @Column({ name: 'slug', nullable: true })
91
+ slug: string;
92
92
  }
@@ -20,7 +20,7 @@ export class OrganizationRepository {
20
20
  subdomain: string,
21
21
  ): Promise<OrganizationData | null> {
22
22
  return await this.organizationRepository.findOne({
23
- where: { subdomain },
23
+ where: { slug: subdomain },
24
24
  });
25
25
  }
26
26
  }
@@ -72,4 +72,7 @@ export class EntityMaster extends BaseEntity {
72
72
 
73
73
  @Column({ name: 'data_source', nullable: true })
74
74
  data_source: string;
75
+
76
+ @Column({ name: 'show_workflow', nullable: true })
77
+ show_workflow: boolean;
75
78
  }
@@ -158,7 +158,7 @@ export class LoginController {
158
158
  const { accessToken, appcode } = data;
159
159
  if (profile && profile === 'dev') {
160
160
  return res.redirect(
161
- `${this.configService.get('FE_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
161
+ `${this.configService.get('DOMAIN_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
162
162
  );
163
163
  } else {
164
164
  if (data.slug) {
@@ -169,7 +169,7 @@ export class LoginController {
169
169
  }
170
170
 
171
171
  return res.redirect(
172
- `${this.configService.get('BASE_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
172
+ `${this.configService.get('DOMAIN_URL')}/auth?token=${accessToken}&appcode=${appcode}`,
173
173
  );
174
174
  }
175
175
 
@@ -186,7 +186,7 @@ export class LoginService {
186
186
  );
187
187
  let slug: string;
188
188
  if (org) {
189
- slug = org.subdomain;
189
+ slug = org.slug;
190
190
  } else {
191
191
  throw new BadRequestException();
192
192
  }
@@ -8,10 +8,9 @@ DB_NAME: 'package_core'
8
8
  MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
9
9
  MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
10
10
  SECRET_KEY: '1hard_to_guess_secret7890a'
11
- CLIENT_ID: '819281384645-2tnuvm80sul1n2ahqa4eg6kjd19pnbu9.apps.googleusercontent.com'
12
- CLIENT_SECRET: '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'
11
+ CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
12
+ CLIENT_SECRET: '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'
13
13
  CALLBACK_URL: 'http://localhost:5001/auth/google/callback'
14
- FE_URL: 'http://localhost:3000'
15
14
  BASE_URL: 'http://localhost:5001'
16
15
  DOMAIN_URL: 'rezolut.in'
17
16
  OTP_EXPIRY: '10'