Skip to content

Commit

Permalink
Fix craeting field type
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanm-bb committed Mar 21, 2024
1 parent 7ab4f25 commit dfe2957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Apps.BWX/Api/BWXClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public BWXClient() : base(new RestClientOptions()
public async Task<RestResponse> ExecuteWithErrorHandling(RestRequest request)
{
var response = await ExecuteAsync(request);
if(response.Content.StartsWith('['))
return response;

var genericResponse = JsonConvert.DeserializeObject<GenericResponse>(response.Content!);

if (!string.IsNullOrEmpty(genericResponse?.Code))
Expand Down
2 changes: 1 addition & 1 deletion Apps.BWX/Dtos/ProjectFileInfoDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ProjectFileInfoDto
public string Hash { get; set; }
public string Notes { get; set; }
public string SourceLocale { get; set; }
public int Creation { get; set; }
public long Creation { get; set; }
public string ProjectUuid { get; set; }
public Params Params { get; set; }
public List<string> Workflows { get; set; }
Expand Down

0 comments on commit dfe2957

Please sign in to comment.