@riocrypto/common 1.0.381 → 1.0.383
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ const password_1 = require("../services/password");
|
|
|
14
14
|
const buildAdminAuth = (mongoose) => {
|
|
15
15
|
// if model is already defined, return it
|
|
16
16
|
if (mongoose.models.AdminAuth) {
|
|
17
|
-
return mongoose.
|
|
17
|
+
return mongoose.model("Admin");
|
|
18
18
|
}
|
|
19
19
|
const AdminSchema = new mongoose.Schema({
|
|
20
20
|
email: {
|
package/build/models/auth.js
CHANGED
|
@@ -14,7 +14,7 @@ const password_1 = require("../services/password");
|
|
|
14
14
|
const buildAuth = (mongoose) => {
|
|
15
15
|
// if model is already defined, return it
|
|
16
16
|
if (mongoose.models.Auth) {
|
|
17
|
-
|
|
17
|
+
return mongoose.models.Auth;
|
|
18
18
|
}
|
|
19
19
|
const AuthSchema = new mongoose.Schema({
|
|
20
20
|
phoneNumber: {
|