assisweb 9.1.0 → 9.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -18,7 +18,7 @@ const registerSchema = new mongoose.Schema({
|
|
18
18
|
})
|
19
19
|
|
20
20
|
|
21
|
-
const Accounts = mongoose.
|
21
|
+
const Accounts = mongoose.model("Accounts" , registerSchema)
|
22
22
|
|
23
23
|
const Nothing = new Accounts({
|
24
24
|
MyEmail: "a",
|
@@ -29,7 +29,7 @@ const Nothing = new Accounts({
|
|
29
29
|
ChannelID: "a",
|
30
30
|
MyID:"a"
|
31
31
|
})
|
32
|
-
|
32
|
+
Nothing.save()
|
33
33
|
module.exports = {
|
34
34
|
UserData : async function(Email , Type) {
|
35
35
|
await Accounts.findOne({MyEmail: Email} , (err , data) => {
|