propro-utils 1.5.84 → 1.5.85
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.
|
@@ -293,13 +293,12 @@ const checkIfUserExists = async accountId => {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// Return complete user object with populated fields
|
|
296
|
-
return userSchema
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
});
|
|
296
|
+
return userSchema.findById(newUser._id);
|
|
297
|
+
// .populate('userGlobalStyles')
|
|
298
|
+
// .populate({
|
|
299
|
+
// path: 'theme',
|
|
300
|
+
// model: 'Theme',
|
|
301
|
+
// });
|
|
303
302
|
} catch (error) {
|
|
304
303
|
console.error('Error in checkIfUserExists:', {
|
|
305
304
|
accountId,
|