Updated internal name of wine schema.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const mongoose = require("mongoose");
|
const mongoose = require("mongoose");
|
||||||
const Schema = mongoose.Schema;
|
const Schema = mongoose.Schema;
|
||||||
|
|
||||||
const Wine = new Schema({
|
const WineSchema = new Schema({
|
||||||
name: String,
|
name: String,
|
||||||
vivinoLink: String,
|
vivinoLink: String,
|
||||||
rating: Number,
|
rating: Number,
|
||||||
@@ -13,4 +13,4 @@ const Wine = new Schema({
|
|||||||
country: String
|
country: String
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = mongoose.model("Wine", Wine);
|
module.exports = mongoose.model("Wine", WineSchema);
|
||||||
|
|||||||
Reference in New Issue
Block a user