propro-utils 1.5.59 → 1.5.61
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/middlewares/account_info.js +1 -1
- package/package.json +1 -1
- package/src/index.js +3 -0
|
@@ -105,7 +105,7 @@ const checkIfUserExists = async accountId => {
|
|
|
105
105
|
const userSchema = await ServiceManager.getService('UserSchema');
|
|
106
106
|
const userStyleSchema = await ServiceManager.getService('UserStyleSchema');
|
|
107
107
|
const folderSchema = await ServiceManager.getService('FolderSchema');
|
|
108
|
-
const Theme =
|
|
108
|
+
const Theme = await ServiceManager.getService('Theme');
|
|
109
109
|
|
|
110
110
|
let user = await userSchema
|
|
111
111
|
.findOne({ accountId })
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -61,6 +61,7 @@ class ProProAuthMiddleware {
|
|
|
61
61
|
this.userSchema = userSchema;
|
|
62
62
|
this.userStyleSchema = userStyleSchema;
|
|
63
63
|
this.folderSchema = folderSchema;
|
|
64
|
+
this.themeSchema = themeSchema;
|
|
64
65
|
this.redisClient = redisClient;
|
|
65
66
|
this.serverAuth = null;
|
|
66
67
|
this.clientAuth = null;
|
|
@@ -92,6 +93,7 @@ class ProProAuthMiddleware {
|
|
|
92
93
|
this.userSchema,
|
|
93
94
|
this.userStyleSchema,
|
|
94
95
|
this.folderSchema,
|
|
96
|
+
this.themeSchema,
|
|
95
97
|
this.redisClient
|
|
96
98
|
);
|
|
97
99
|
}
|
|
@@ -100,6 +102,7 @@ class ProProAuthMiddleware {
|
|
|
100
102
|
ServiceManager.registerService('UserStyleSchema', this.userStyleSchema);
|
|
101
103
|
ServiceManager.registerService('RedisClient', this.redisClient);
|
|
102
104
|
ServiceManager.registerService('FolderSchema', this.folderSchema);
|
|
105
|
+
ServiceManager.registerService('ThemeSchema', this.themeSchema);
|
|
103
106
|
return this.serverAuth.middleware();
|
|
104
107
|
}
|
|
105
108
|
|