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:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user