/checkupdates: Show Button, when Upgrade Version is available ! (check from the server, the version number

This commit is contained in:
Paolo Arena
2019-02-22 10:23:39 +01:00
parent c7f13d820d
commit d78de1a25c
9 changed files with 133 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ const isValidSaveRequest = (req, res) => {
};
router.post('/', authenticate, (req, res) => {
console.log('req.body.others', req.body.others);
// console.log('req.body.others', req.body.others);
if (!isValidSaveRequest(req, res)) {
return;
@@ -52,8 +52,10 @@ router.post('/', authenticate, (req, res) => {
if (myitem === null) {
myitem = subscriptionModel;
tools.mylogshow('Subscription NOT EXISTED IN DB, so I use this created!', myitem)
}else
tools.mylogshow('Subscription already Existed!', myitem)
}
// else
// tools.mylogshow('Subscription already Existed!');
myitem.save((err, subscription) => {