@rpcbase/server 0.371.0 → 0.372.0-nav.1
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/package.json
CHANGED
|
@@ -14,14 +14,18 @@ const get_projection = (payload) => {
|
|
|
14
14
|
return projection
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
const get_stored_values = async(payload, ctx) => {
|
|
19
18
|
const {user_id} = ctx.req.session
|
|
20
19
|
expect(user_id).toBeMongoId()
|
|
21
20
|
|
|
22
21
|
const projection = get_projection(payload)
|
|
23
22
|
|
|
24
|
-
const storage_doc = await UserStoredValues.findOne(
|
|
23
|
+
const storage_doc = await UserStoredValues.findOne(
|
|
24
|
+
{_owners: {$in: [user_id]}},
|
|
25
|
+
projection,
|
|
26
|
+
{ctx},
|
|
27
|
+
)
|
|
28
|
+
|
|
25
29
|
assert(storage_doc, `unable to retrieve storage_doc for user: ${user_id}`)
|
|
26
30
|
|
|
27
31
|
const result = {
|