propro-utils 1.6.0 → 1.6.2

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.
@@ -69,11 +69,11 @@ const getAccountProfile = async (redisClient, userSchema, accountId) => {
69
69
  async function consolidateGlobalStyles(accountId) {
70
70
  const userStyleSchema = await ServiceManager.getService("UserStyleSchema");
71
71
 
72
- // Find all global styles for this account with allowDiskUse option
72
+ // Find all global styles for this account
73
73
  const allStyles = await userStyleSchema
74
74
  .find({ accountId })
75
75
  .sort({ createdAt: 1 })
76
- .option({ allowDiskUse: true });
76
+ .options({ allowDiskUse: true });
77
77
 
78
78
  if (allStyles.length <= 1) {
79
79
  return allStyles[0];
@@ -109,6 +109,7 @@ async function consolidateGlobalStyles(accountId) {
109
109
 
110
110
  return mainStyle;
111
111
  }
112
+
112
113
  /**
113
114
  * Creates a new user global styles document with default style shortcuts.
114
115
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-utils",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Auth middleware for propro-auth",
5
5
  "main": "src/index.js",
6
6
  "scripts": {