1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import process from "node:process";
import { notionGetDatabase } from "https://esm.town/v/stevekrouse/notionGetDatabase";
export const notionGetDatabaseEditedAfter = async ({ databaseId, auth, date }) => {
return notionGetDatabase({
auth: process.env.notion,
databaseId,
filter: {
timestamp: "last_edited_time",
last_edited_time: {
on_or_after: date,
},
},
});
};