Update PS reference, dev link, remove IO EVent, add token refresh before mix data.

This commit is contained in:
Patrick Fic
2022-06-28 16:23:10 -07:00
parent 4ec2bb82eb
commit 20804d4240
5 changed files with 6 additions and 2 deletions

View File

@@ -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";

View File

@@ -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)

View File

@@ -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));

View File

@@ -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}

View File

@@ -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}