propro-utils 1.5.82 → 1.5.84
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.
|
@@ -232,13 +232,12 @@ const checkIfUserExists = async accountId => {
|
|
|
232
232
|
await Promise.all(updates);
|
|
233
233
|
|
|
234
234
|
// Return fresh user data after updates
|
|
235
|
-
return userSchema
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
});
|
|
235
|
+
return userSchema.findOne({ accountId });
|
|
236
|
+
// .populate('userGlobalStyles')
|
|
237
|
+
// .populate({
|
|
238
|
+
// path: 'theme',
|
|
239
|
+
// model: 'Theme',
|
|
240
|
+
// });
|
|
242
241
|
}
|
|
243
242
|
|
|
244
243
|
// Create new user with all associated data
|