Fix: Models naming before exports

This commit is contained in:
Llewellyn D'souza
2021-12-27 13:37:37 +05:30
parent 1f9f6db3dc
commit bdea8113ec
2 changed files with 4 additions and 4 deletions

View File

@@ -37,6 +37,6 @@ const schema = new mongoose.Schema(
}
);
const Level = mongoose.model("Level", schema);
const Bay = mongoose.model("Bay", schema);
module.exports = Level;
module.exports = Bay;

View File

@@ -68,6 +68,6 @@ const schema = new mongoose.Schema(
}
);
const Level = mongoose.model("Level", schema);
const SubLevel = mongoose.model("SubLevel", schema);
module.exports = Level;
module.exports = SubLevel;