assisweb 9.2.0 → 9.5.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 +5 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -18,21 +18,12 @@ const registerSchema = new mongoose.Schema({
18
18
  })
19
19
 
20
20
 
21
- const Accounts = mongoose.Model("Accounts" , registerSchema)
22
-
23
- const Nothing = new Accounts({
24
- MyEmail: "a",
25
- MyPass: "a",
26
- MyName: "a",
27
- MyDiscordID: "a",
28
- DiscordBotToken: "a",
29
- ChannelID: "a",
30
- MyID:"a"
31
- })
32
- Nothing.save()
21
+ const Accounts = mongoose.model("Accounts" , registerSchema)
22
+
23
+
33
24
  module.exports = {
34
- UserData : async function(Email , Type) {
35
- await Accounts.findOne({MyEmail: Email} , (err , data) => {
25
+ UserData : function(Email , Type) {
26
+ Accounts.findOne({MyEmail: Email} , (err , data) => {
36
27
  if(err) {
37
28
  return;
38
29
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "mongoose": "^6.2.8"
4
4
  },
5
5
  "name": "assisweb",
6
- "version": "9.2.0",
6
+ "version": "9.5.0",
7
7
  "main": "index.js",
8
8
  "devDependencies": {},
9
9
  "scripts": {