Skip to content

Commit 32e2faf

Browse files
committed
Fixing page serialization
1 parent 1059bd3 commit 32e2faf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/CmdPalNotionExtension/Notion/Models/Formula.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal sealed record StringFormula(
2323
) : Formula;
2424

2525
internal sealed record DateFormula(
26-
[property: JsonPropertyName("date")] DateTime? Date
26+
[property: JsonPropertyName("date")] DateType? Date
2727
) : Formula;
2828

2929
internal sealed record BooleanFormula(

src/CmdPalNotionExtension/Notion/NotionDataProvider.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Diagnostics;
43
using System.Net.Http;
54
using System.Net.Http.Headers;
@@ -58,7 +57,7 @@ private async Task<T> SendAsync<T>(HttpRequestMessage request)
5857

5958
response.EnsureSuccessStatusCode();
6059

61-
return await response.Content.ReadFromJsonAsync<T>();
60+
return await response.Content.ReadFromJsonAsync<T>(_jsonSerializerOptions);
6261
}
6362
catch (Exception ex)
6463
{

0 commit comments

Comments
 (0)