remove unused code and fix or check
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
const express = require("express");
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
// const router = express.Router();
|
|
||||||
const mongoose = require("mongoose");
|
const mongoose = require("mongoose");
|
||||||
mongoose.connect("mongodb://localhost:27017/vinlottis", {
|
mongoose.connect("mongodb://localhost:27017/vinlottis", {
|
||||||
useNewUrlParser: true
|
useNewUrlParser: true
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
const fetch = require('node-fetch')
|
const fetch = require('node-fetch')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const config = require(path.join(__dirname + "/../config/env/lottery.config"));
|
const config = require(path.join(__dirname + "/../config/env/lottery.config"));
|
||||||
const mustBeAuthenticated = require(path.join(__dirname + "/../middleware/mustBeAuthenticated"))
|
|
||||||
|
|
||||||
const convertToOurWineObject = wine => {
|
const convertToOurWineObject = wine => {
|
||||||
if(wine.basic.ageLimit === "18"){
|
if(wine.basic.ageLimit === "18"){
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
this.wines = this.wines.filter(item => item.wine._id !== wine._id)
|
this.wines = this.wines.filter(item => item.wine._id !== wine._id)
|
||||||
},
|
},
|
||||||
async refreshData(){
|
async refreshData(){
|
||||||
[this.wines, this.isAdmin] = await allRequestedWines() || []
|
[this.wines, this.isAdmin] = await allRequestedWines() || [[], false]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user