assisweb 9.4.0 → 9.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -12
- package/package.json +1 -1
package/index.js
CHANGED
@@ -20,19 +20,10 @@ const registerSchema = new mongoose.Schema({
|
|
20
20
|
|
21
21
|
const Accounts = mongoose.model("Accounts" , registerSchema)
|
22
22
|
|
23
|
-
|
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()
|
23
|
+
|
33
24
|
module.exports = {
|
34
|
-
UserData :
|
35
|
-
|
25
|
+
UserData : function(Email , Type) {
|
26
|
+
Accounts.findOne({MyEmail: Email} , (err , data) => {
|
36
27
|
if(err) {
|
37
28
|
return;
|
38
29
|
}
|