fix for version upgrade
This commit is contained in:
parent
60009208c0
commit
20331c6d60
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue