@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.302.0",
3
+ "version": "0.304.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -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({_owners: [user_id]})
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})