assisweb 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17,12 +17,12 @@ const registerSchema = new mongoose.Schema({
17
17
  MyID: String
18
18
  })
19
19
 
20
- const Accounts = mongoose.model("Accounts" , registerSchema)
20
+ const Accounts = mongoose.model("Accounts")
21
21
 
22
22
 
23
23
  module.exports = {
24
24
  UserData : function(Email , Type) {
25
- Users.findOne({MyEmail: Email} , (err , data) => {
25
+ Accounts.findOne({MyEmail: Email} , (err , data) => {
26
26
  if(err) {
27
27
  return;
28
28
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "mongoose": "^6.2.8"
4
4
  },
5
5
  "name": "assisweb",
6
- "version": "2.0.0",
6
+ "version": "3.0.0",
7
7
  "main": "index.js",
8
8
  "devDependencies": {},
9
9
  "scripts": {