Send confirmation after select wine & text update.

Text update: sendWineConfirmation.
Confirmation on what wine recipient selected, date wone
and where to pick up the wine.
This commit is contained in:
2020-10-11 22:32:32 +02:00
committed by KevinMidboe
parent 7e0d3cd75e
commit 6603fc489c
2 changed files with 19 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ const registerWinnerSelection = async (req, res) => {
let wonWine = await _wineFunctions.findSaveWine(prelotteryWine);
await prelotteryWine.delete();
await _personFunctions.findSavePerson(foundWinner, wonWine, date);
await Message.sendWineConfirmation(foundWinner, wonWine, date);
await foundWinner.delete();
console.info("Saved winners choice.");