Serverless handler stub created

This commit is contained in:
Senad Uka
2019-03-07 06:24:08 +01:00
parent 4726031c8e
commit 3f8e6438b2
17 changed files with 1575 additions and 43 deletions

View File

@@ -0,0 +1,8 @@
const convertToDate = require("./convertToDate");
function areThereAnyNewItems(lastItemDate, controlDate) {
if (!lastItemDate) {
return true;
}
return new Date(controlDate) < convertToDate(lastItemDate);
}
module.exports = areThereAnyNewItems;