@rpcbase/server 0.302.0 → 0.304.0
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 +1 -1
- package/src/auth/sign_up.js +4 -1
package/package.json
CHANGED
package/src/auth/sign_up.js
CHANGED
|
@@ -49,7 +49,10 @@ const sign_up = async(payload, ctx, session) => {
|
|
|
49
49
|
// sign the user in
|
|
50
50
|
const user_id = user._id.toString()
|
|
51
51
|
|
|
52
|
-
const values_store = new UserStoredValues({
|
|
52
|
+
const values_store = new UserStoredValues({
|
|
53
|
+
_id: get_object_id(),
|
|
54
|
+
_owners: [user_id]
|
|
55
|
+
})
|
|
53
56
|
|
|
54
57
|
// WARNING: it is now the responsibility of the app to add user.save with session
|
|
55
58
|
// await user.save({ctx, session})
|