Merge pull request #4022 from omnivore-app/fix/notion

fix: always sync Last Updated in Notion
This commit is contained in:
Hongbo Wu 2024-06-03 13:01:49 +08:00 committed by GitHub
commit 1df84f7a42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ interface NotionPage {
start: string
}
}
'Last Updated'?: {
'Last Updated': {
date: {
start: string
}
@ -238,13 +238,13 @@ export class NotionClient implements IntegrationClient {
},
}
: undefined,
'Last Updated': item.updatedAt
? {
date: {
start: item.updatedAt as string,
},
}
: undefined,
'Last Updated': {
date: {
start: item.updatedAt
? (item.updatedAt as string)
: new Date().toISOString(),
},
},
Tags: item.labels
? {
multi_select: item.labels.map((label) => ({