Skip to content

Commit f41881e

Browse files
committed
Fix typo in BaseModel
1 parent 2f62400 commit f41881e

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
## 3.0.4 - 2022-11-22
4+
35
## 3.0.3 - 2022-11-22
46

57
- `GetHeaders` is now passed to `ModeledResponse` and `BaseModel` so that the default `Update` and `Delete` methods use the latest credentials

Postgrest/Models/BaseModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public abstract class BaseModel
4444
{
4545
var client = new Client(BaseUrl, RequestClientOptions);
4646
client.GetHeaders = GetHeaders;
47-
return client.Table<T>().Update((T)this, cancellationToken: cancellationToken);
47+
return client.Table<T>().Delete((T)this, cancellationToken: cancellationToken);
4848
}
4949

5050
throw new Exception("`BaseUrl` should be set in the model.");

Postgrest/Postgrest.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
</Description>
2020
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
2121
<PackageTags>supabase,postgrest</PackageTags>
22-
<ReleaseVersion>3.0.3</ReleaseVersion>
23-
<PackageVersion>3.0.3</PackageVersion>
22+
<ReleaseVersion>3.0.4</ReleaseVersion>
23+
<PackageVersion>3.0.4</PackageVersion>
2424
</PropertyGroup>
2525
<PropertyGroup>
2626
<Nullable>enable</Nullable>
2727
<LangVersion>8.0</LangVersion>
2828
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
2929
</PropertyGroup>
3030
<PropertyGroup Condition=" '$(Version)' == '' ">
31-
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">3.0.3</VersionPrefix>
31+
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">3.0.4</VersionPrefix>
3232
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">
3333
</VersionSuffix>
3434
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>

PostgrestExample/PostgrestExample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>netcoreapp3.1</TargetFramework>
6-
<ReleaseVersion>3.0.3</ReleaseVersion>
6+
<ReleaseVersion>3.0.4</ReleaseVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

PostgrestTests/PostgrestTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<IsPackable>false</IsPackable>
6-
<ReleaseVersion>3.0.3</ReleaseVersion>
6+
<ReleaseVersion>3.0.4</ReleaseVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

0 commit comments

Comments
 (0)