-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Description
Describe the bug
When creating a database item in Notion it only allows us to select one date which is the start date and we should be able to select start date and end date.
To Reproduce
Steps to reproduce the behavior:
- Create a Workflow that Creates Page from Database that has a single Date property
- Try to Add Start Date and End Date to the Date Property
Expected behavior
Notion Date Property
{
"scheduled date": {
"date": {
"start": "2022-01-01T00:00:00Z",
"end": "2022-01-02T00:00:00Z"
}
}
}
Current:
date: {
type: "string",
example: "2022-05-15T18:47:00.000Z",
options: () => undefined,
convertToNotion: (property) => ({
date: {
start: property.value,
},
}),
}
Future:
date: {
type: "object",
example: {
start: "2022-01-01T00:00:00Z",
end: "2022-01-02T01:00:00Z",
},
options: () => undefined,
convertToNotion: (property) => ({
date: {
start: property.value.start,
end: property.value.end,
},
}),
}
Screenshots
If applicable, add screenshots to help explain your problem. Note that the screenshots will be displayed publicly.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
I am not 100% sure on dependencies and what the process is but happy to work on the update.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employeeFor maintainers: This issue has been triaged by a Pipedream employee
Type
Projects
Status
Done