assisweb 4.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -4
- 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")
|
21
|
-
|
20
|
+
const Accounts = mongoose.model("Accounts" , registerSchema)
|
22
21
|
|
22
|
+
module.exports = Accounts
|
23
23
|
module.exports = {
|
24
|
-
UserData : function(Email , Type) {
|
25
|
-
Accounts.findOne({MyEmail: Email} , (err , data) => {
|
24
|
+
UserData : async function(Email , Type) {
|
25
|
+
await Accounts.findOne({MyEmail: Email} , (err , data) => {
|
26
26
|
if(err) {
|
27
27
|
return;
|
28
28
|
}
|