fix for version upgrade

This commit is contained in:
Nuwan 2023-07-22 03:59:49 +05:30
parent 60009208c0
commit 20331c6d60
2 changed files with 2 additions and 3 deletions

View File

@ -255,7 +255,6 @@
// check if updated is needed
async function check() {
var os = await context.jamClient.GetDetailedOS();
//os = 'Win32'
@ -284,7 +283,8 @@
type: "GET",
url: "/api/versioncheck?product=" + product + "&os=" + os,
success: function (response) {
if(JSON.stringify(response) !== "{}"){
console.log('versioncheck response', response)
if(!jQuery.isEmptyObject(response)){
runCheck(product, response.version, response.uri, response.size, currentVersion);
}
},

View File

@ -62,7 +62,6 @@ class ArtifactsController < ApiController
logger.debug "version check from #{product}"
unless ArtifactUpdate::PRODUCTS.include? product
render :json => { :errors => { :product => ['not a valid product'] } }, :status => :unprocessable_entity
return