propro-utils 1.5.79 → 1.5.80

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.
@@ -202,11 +202,12 @@ const checkIfUserExists = async accountId => {
202
202
  }
203
203
 
204
204
  // Handle themes
205
+ console.log('themeSchema:', themeSchema);
205
206
  if (themeSchema) {
206
207
  updates.push(
207
208
  (async () => {
208
209
  const defaultThemeExists = await themeSchema.exists({
209
- name: 'Default Theme',
210
+ // name: 'Default Theme',
210
211
  accountId,
211
212
  });
212
213
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.5.79",
3
+ "version": "1.5.80",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -157,7 +157,10 @@ class AuthMiddleware {
157
157
  this.options.redirectUri
158
158
  );
159
159
 
160
+ console.log('tokens:', tokens);
161
+ console.log('account:', account);
160
162
  const user = await checkIfUserExists(account.accountId);
163
+ console.log('user:', user);
161
164
 
162
165
  if (!user) {
163
166
  throw new Error('User not found');