@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.models.AdminAuth;
17
+ return mongoose.model("Admin");
18
18
  }
19
19
  const AdminSchema = new mongoose.Schema({
20
20
  email: {
@@ -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
- const x = mongoose.models.Auth;
17
+ return mongoose.models.Auth;
18
18
  }
19
19
  const AuthSchema = new mongoose.Schema({
20
20
  phoneNumber: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.381",
3
+ "version": "1.0.383",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",