assisweb 7.0.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -17,9 +17,8 @@ const registerSchema = new mongoose.Schema({
|
|
17
17
|
MyID: String
|
18
18
|
})
|
19
19
|
|
20
|
-
const Accounts = mongoose.model("Accounts" , registerSchema)
|
21
20
|
|
22
|
-
module.exports = Accounts
|
21
|
+
module.exports.Accounts = Accounts = mongoose.model("Accounts" , registerSchema)
|
23
22
|
module.exports = {
|
24
23
|
UserData : async function(Email , Type) {
|
25
24
|
await Accounts.findOne({MyEmail: Email} , (err , data) => {
|