sending notification when new items arrive with send grid

This commit is contained in:
egradanin
2019-01-19 19:20:21 +01:00
parent 18032c6ca6
commit ba2fcf0b8c
8 changed files with 540 additions and 44 deletions

View File

@@ -0,0 +1,13 @@
function convertToDate(date) {
const [dan, mjesec, godina] = date
.split(". u ")[0]
.split(".")
.map(el => Number(el));
const [sati, minute] = date
.split(". u ")[1]
.split(":")
.map(el => Number(el));
return new Date(godina, mjesec, dan, sati, minute);
}
module.exports = convertToDate;