Feat/controllers - refactor entire backend and new admin interface #75

Merged
KevinMidboe merged 117 commits from feat/controllers into master 2021-02-19 00:19:52 +00:00
Showing only changes of commit 9fd67a6bc3 - Show all commits

View File

@@ -30,7 +30,7 @@ const addWines = wines => {
return Promise.all(prelotteryWines);
};
const wineById = (id, updateModel) => {
const wineById = id => {
return PreLotteryWine.findOne({ _id: id }).then(wine => {
if (wine == null) {
throw new WineNotFound();