8000 Incorrect mapping when RollupValue type is Date · Issue #425 · notion-dotnet/notion-sdk-net · GitHub
[go: up one dir, main page]

Skip to content
Incorrect mapping when RollupValue type is Date #425
Closed
@mitaken

Description

@mitaken

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0