Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/OneSignalApi/Api/DefaultApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ public OneSignalApi.Client.ApiResponse<CreateNotificationSuccessResponse> Create
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.PostAsync<CreateNotificationSuccessResponse>("/notifications", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);

if (this.ExceptionFactory != null)
if (localVarResponse.StatusCode != HttpStatusCode.OK && this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("CreateNotification", localVarResponse);
if (_exception != null)
Expand Down
16 changes: 8 additions & 8 deletions src/OneSignalApi/OneSignalApi.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand All @@ -24,14 +24,14 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JsonSubTypes" Version="1.8.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
<PackageReference Include="RestSharp" Version="106.13.0"/>
<PackageReference Include="Polly" Version="7.2.3"/>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0"/>
<PackageReference Include="JsonSubTypes" Version="1.8.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="RestSharp" Version="106.13.0" />
<PackageReference Include="Polly" Version="7.2.3" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<None Include="../../nuget_icon.png" Pack="true" PackagePath=""/>
<None Include="../../LICENSE" Pack="true" PackagePath=""/>
<None Include="../../nuget_icon.png" Pack="true" PackagePath="" />
<None Include="../../LICENSE" Pack="true" PackagePath="" />
</ItemGroup>
</Project>