diff --git a/BodyshopUploader/Utils/AppMetaData.cs b/BodyshopUploader/Utils/AppMetaData.cs index 98a88f5..e0e0c65 100644 --- a/BodyshopUploader/Utils/AppMetaData.cs +++ b/BodyshopUploader/Utils/AppMetaData.cs @@ -33,7 +33,7 @@ namespace BodyshopPartner.Utils if (args.Length == 1) { #if DEBUG - graphQlEndpoint = "https://bodyshop-dev-db.herokuapp.com/v1/graphql"; + graphQlEndpoint = "https://db.development.bodyshop.app/v1/graphql"; RestClient = new RestClient("http://localhost:4000"); FirebaseAPIKey = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc"; diff --git a/BodyshopUploader/Utils/GraphQL.cs b/BodyshopUploader/Utils/GraphQL.cs index 8287d74..a53d378 100644 --- a/BodyshopUploader/Utils/GraphQL.cs +++ b/BodyshopUploader/Utils/GraphQL.cs @@ -45,7 +45,7 @@ namespace BodyshopPartner.Utils try { - httpClient.PostAsync("https://api.imex.online/ioevent", content); + // httpClient.PostAsync("https://api.imex.online/ioevent", content); } catch (Exception ex) diff --git a/BodyshopUploader/Utils/PPGMixData.cs b/BodyshopUploader/Utils/PPGMixData.cs index 011f1b0..145f07c 100644 --- a/BodyshopUploader/Utils/PPGMixData.cs +++ b/BodyshopUploader/Utils/PPGMixData.cs @@ -140,6 +140,8 @@ v_paint_codes RestRequest request = new RestRequest("/mixdata/upload",Method.Post); + //Check whether to update the token first. + await Utils.Auth.Refresh(); request.AddHeader("Authorization", "Bearer " + Utils.Auth.authlink.FirebaseToken); request.AddFile("file", Path.Combine(Properties.Settings.Default.PaintScaleImportPath, fileName)); diff --git a/BodyshopUploader/Utils/Scripts/ArmsExport.ps1 b/BodyshopUploader/Utils/Scripts/ArmsExport.ps1 index a6db0ed..5027ca8 100644 --- a/BodyshopUploader/Utils/Scripts/ArmsExport.ps1 +++ b/BodyshopUploader/Utils/Scripts/ArmsExport.ps1 @@ -30,6 +30,7 @@ Start-Process -FilePath "C:\ImEX\Applications\ARMSUploader\ROUpload.exe" Switch ($PSversion) { 1 {v1} 2 {v1} + 3 {v2} 4 {v2} 5 {v2} 6 {v2} diff --git a/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 b/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 index 7f374c9..ec0795f 100644 --- a/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 +++ b/BodyshopUploader/Utils/Scripts/PaintScaleExport.ps1 @@ -26,6 +26,7 @@ ReadStream = New-Object System.IO.StreamReader $ResponseStream Switch ($PSversion) { 1 {v1} 2 {v1} + 3 {v2} 4 {v2} 5 {v2} 6 {v2}