assisweb 1.0.0 → 4.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 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7,7 +7,6 @@ mongoose.connect("mongodb+srv://Assis:200420082018@cluster0.el3tr.mongodb.net/my
7
7
  console.log(err)
8
8
  })
9
9
 
10
-
11
10
  const registerSchema = new mongoose.Schema({
12
11
  MyEmail: String,
13
12
  MyPass: String,
@@ -18,12 +17,12 @@ const registerSchema = new mongoose.Schema({
18
17
  MyID: String
19
18
  })
20
19
 
21
- const Users = mongoose.model("Users" , registerSchema)
20
+ const Accounts = mongoose.model("Accounts")
22
21
 
23
22
 
24
23
  module.exports = {
25
24
  UserData : function(Email , Type) {
26
- Users.findOne({MyEmail: Email} , (err , data) => {
25
+ Accounts.findOne({MyEmail: Email} , (err , data) => {
27
26
  if(err) {
28
27
  return;
29
28
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "mongoose": "^6.2.8"
4
4
  },
5
5
  "name": "assisweb",
6
- "version": "1.0.0",
6
+ "version": "4.0.0",
7
7
  "main": "index.js",
8
8
  "devDependencies": {},
9
9
  "scripts": {