Update PS reference, dev link, remove IO EVent, add token refresh before mix data.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BodyshopPartner.Utils
|
|||||||
if (args.Length == 1)
|
if (args.Length == 1)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#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");
|
RestClient = new RestClient("http://localhost:4000");
|
||||||
FirebaseAPIKey = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc";
|
FirebaseAPIKey = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc";
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace BodyshopPartner.Utils
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
httpClient.PostAsync("https://api.imex.online/ioevent", content);
|
// httpClient.PostAsync("https://api.imex.online/ioevent", content);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ v_paint_codes
|
|||||||
|
|
||||||
|
|
||||||
RestRequest request = new RestRequest("/mixdata/upload",Method.Post);
|
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.AddHeader("Authorization", "Bearer " + Utils.Auth.authlink.FirebaseToken);
|
||||||
request.AddFile("file", Path.Combine(Properties.Settings.Default.PaintScaleImportPath, fileName));
|
request.AddFile("file", Path.Combine(Properties.Settings.Default.PaintScaleImportPath, fileName));
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ Start-Process -FilePath "C:\ImEX\Applications\ARMSUploader\ROUpload.exe"
|
|||||||
Switch ($PSversion) {
|
Switch ($PSversion) {
|
||||||
1 {v1}
|
1 {v1}
|
||||||
2 {v1}
|
2 {v1}
|
||||||
|
3 {v2}
|
||||||
4 {v2}
|
4 {v2}
|
||||||
5 {v2}
|
5 {v2}
|
||||||
6 {v2}
|
6 {v2}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ ReadStream = New-Object System.IO.StreamReader $ResponseStream
|
|||||||
Switch ($PSversion) {
|
Switch ($PSversion) {
|
||||||
1 {v1}
|
1 {v1}
|
||||||
2 {v1}
|
2 {v1}
|
||||||
|
3 {v2}
|
||||||
4 {v2}
|
4 {v2}
|
||||||
5 {v2}
|
5 {v2}
|
||||||
6 {v2}
|
6 {v2}
|
||||||
|
|||||||
Reference in New Issue
Block a user