Skip to content

Commit e374ac4

Browse files
Fixed an issue where queries to the database directly under the Wiki page failed
1 parent 755d02a commit e374ac4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Src/Notion.Client/Models/Database/IDatabaseParent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace Notion.Client
77
[JsonSubtypes.KnownSubTypeAttribute(typeof(PageParent), ParentType.PageId)]
88
[JsonSubtypes.KnownSubTypeAttribute(typeof(WorkspaceParent), ParentType.Workspace)]
99
[JsonSubtypes.KnownSubTypeAttribute(typeof(BlockParent), ParentType.BlockId)]
10+
[JsonSubtypes.KnownSubTypeAttribute(typeof(DatabaseParent), ParentType.DatabaseId)]
1011
public interface IDatabaseParent : IParent
1112
{
1213
}

Src/Notion.Client/Models/Parents/DatabaseParent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Notion.Client
44
{
5-
public class DatabaseParent : IPageParent, IBlockParent
5+
public class DatabaseParent : IPageParent, IBlockParent, IDatabaseParent
66
{
77
/// <summary>
88
/// The ID of the database that this page belongs to.

0 commit comments

Comments
 (0)