Skip to content

Commit

Permalink
Merge pull request #4022 from omnivore-app/fix/notion
Browse files Browse the repository at this point in the history
fix: always sync Last Updated in Notion
  • Loading branch information
sywhb authored Jun 3, 2024
2 parents 72270ae + e1236db commit 1df84f7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/api/src/services/integrations/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface NotionPage {
start: string
}
}
'Last Updated'?: {
'Last Updated': {
date: {
start: string
}
Expand Down Expand Up @@ -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) => ({
Expand Down

0 comments on commit 1df84f7

Please sign in to comment.