Renamed all references to vivinoLink to more general link.

This commit is contained in:
2020-03-26 16:42:52 +01:00
parent 119d52828f
commit bf06559298
6 changed files with 11 additions and 11 deletions

View File

@@ -124,7 +124,7 @@ router.route("/wines/statistics/overall").get(async (req, res) => {
wines[wine._id] = {
name: wine.name,
occurences: wine.occurences,
vivinoLink: wine.vivinoLink,
link: wine.link,
rating: wine.rating,
image: wine.image,
id: wine.id,

View File

@@ -32,7 +32,7 @@ router.route("/log/wines").post(mustBeAuthenticated, async (req, res) => {
let wine = wines[i];
let newWonWine = new PreLotteryWine({
name: wine.name,
vivinoLink: wine.vivinoLink,
link: wine.link,
rating: wine.rating,
image: wine.image,
price: wine.price,
@@ -90,7 +90,7 @@ router.route("/log").post(mustBeAuthenticated, async (req, res) => {
if (wonWine == undefined) {
let newWonWine = new Wine({
name: currentWinner.wine.name,
vivinoLink: currentWinner.wine.vivinoLink,
link: currentWinner.wine.link,
rating: currentWinner.wine.rating,
occurences: 1,
image: currentWinner.wine.image,