Skip to content

Commit 09ff919

Browse files
committed
Fix broken database relation request parameters.
1 parent 5e0882b commit 09ff919

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
using System;
2-
using Newtonsoft.Json;
1+
using Newtonsoft.Json;
32

43
namespace Notion.Client
54
{
65
public class RelationPropertySchema : IPropertySchema
76
{
87
[JsonProperty("relation")]
9-
public RelationInfo Relation { get; set; }
10-
11-
public class RelationInfo
12-
{
13-
[JsonProperty("database_id")]
14-
public Guid DatabaseId { get; set; }
15-
16-
[JsonProperty("synced_property_id")]
17-
public string SyncedPropertyId { get; set; }
18-
19-
[JsonProperty("synced_property_name")]
20-
public string SyncedPropertyName { get; set; }
21-
}
8+
public RelationData Relation { get; set; }
229
}
2310
}
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
using System;
2-
using Newtonsoft.Json;
1+
using Newtonsoft.Json;
32

43
namespace Notion.Client
54
{
65
public class RelationUpdatePropertySchema : UpdatePropertySchema
76
{
87
[JsonProperty("relation")]
9-
public RelationInfo Relation { get; set; }
10-
11-
public class RelationInfo
12-
{
13-
[JsonProperty("database_id")]
14-
public Guid DatabaseId { get; set; }
15-
16-
[JsonProperty("synced_property_id")]
17-
public string SyncedPropertyId { get; set; }
18-
19-
[JsonProperty("synced_property_name")]
20-
public string SyncedPropertyName { get; set; }
21-
}
8+
public RelationData Relation { get; set; }
229
}
2310
}

0 commit comments

Comments
 (0)