Merge branch 'master' into feat/history-page-by-date
This commit is contained in:
@@ -104,6 +104,7 @@ const byEpochDate = (req, res) => {
|
||||
|
||||
const byName = (req, res) => {
|
||||
const { name } = req.params;
|
||||
const regexName = new RegExp(name, "i"); // lowercase regex of the name
|
||||
|
||||
return Highscore.find({ name })
|
||||
.then(highscore => {
|
||||
|
||||
@@ -7,7 +7,7 @@ async function sendWineSelectMessage(winnerObject) {
|
||||
winnerObject.timestamp_limit = new Date().getTime() * 600000;
|
||||
await winnerObject.save();
|
||||
|
||||
let url = new URL(`/#/winner/${winnerObject.id}`, "https://lottis.vin");
|
||||
let url = new URL(`/winner/${winnerObject.id}`, "https://lottis.vin");
|
||||
|
||||
return sendMessageToUser(
|
||||
winnerObject.phoneNumber,
|
||||
|
||||
@@ -35,7 +35,7 @@ const submitWines = async (req, res) => {
|
||||
const message = JSON.stringify({
|
||||
message: "Dagens vin er lagt til, se den på lottis.vin/dagens!",
|
||||
title: "Ny vin!",
|
||||
link: "/#/dagens"
|
||||
link: "/dagens"
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user