Fix: Models naming before exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user