/checkupdates: Show Button, when Upgrade Version is available ! (check from the server, the version number
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user