Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect mapping when RollupValue type is Date #425

Open
mitaken opened this issue Dec 8, 2024 · 0 comments
Open

Incorrect mapping when RollupValue type is Date #425

mitaken opened this issue Dec 8, 2024 · 0 comments

Comments

@mitaken
Copy link

mitaken commented Dec 8, 2024

Describe the bug
If a date is used for Rollup in the database columns, the value is not returned correctly.
This problem is caused by an error in the type information when mapping RollupValue.

To Reproduce
Steps to reproduce the behavior:

  1. Create a rollup column of date type in the database
  2. Query the database using "NotionClient.Databases.QueryAsync"
  3. page.Properties["rollup_with_date").Rollup.Date.Date.Start is missing(Rollup.Date is null)

Expected behavior
page.Properties["rollup_with_date").Rollup.Date .Date .Start has rollup date value

Additional context
I'm using 4.2.0
https://github.com/notion-dotnet/notion-sdk-net/releases/tag/4.2.0

This “DatePropertyValue” should be "Date"

public DatePropertyValue Date { get; set; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant