@rpcbase/server 0.214.0 → 0.216.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.214.0",
3
+ "version": "0.216.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/rts/index.js CHANGED
@@ -306,7 +306,6 @@ const run_query = async(mongoose, socket_id, {model_name, query, query_key, opti
306
306
 
307
307
 
308
308
  const remove_query = (socket_id, {model_name, query, query_key}) => {
309
- // const query_key = JSON.stringify(query)
310
309
  const sockets = _queries[model_name]?.[query_key]?.sockets || []
311
310
 
312
311
  let new_sockets
@@ -2,7 +2,10 @@
2
2
  const mongoose = require("../../mongoose")
3
3
 
4
4
  const UserSchema = new mongoose.Schema({
5
- email: String,
5
+ email: {
6
+ type: String,
7
+ index: true,
8
+ },
6
9
  first_name: {
7
10
  type: String,
8
11
  default: "",