@rpcbase/server 0.201.0 → 0.203.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/express/index.js CHANGED
@@ -19,7 +19,7 @@ const {APP_DOMAIN, CLIENT_PORT} = process.env
19
19
 
20
20
  // TODO: document this
21
21
  // we could have a larger size, but it's good practice to keep it small to prevent body upload ddos attacks
22
- const BODY_MAX_SIZE_MB = 8
22
+ const BODY_MAX_SIZE_MB = 80
23
23
 
24
24
 
25
25
  log("server is production:", JSON.stringify(is_production))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.201.0",
3
+ "version": "0.203.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -24,6 +24,6 @@ const UserSchema = new mongoose.Schema({
24
24
  versionKey: false,
25
25
  })
26
26
 
27
- const model = mongoose.model("UserSchema", UserSchema)
27
+ const model = mongoose.model("User", UserSchema)
28
28
 
29
29
  module.exports = model