Skip to content

Commit c49b5b6

Browse files
authored
Merge pull request #4 from team-plain/filter-out-done-threads
Filter done
2 parents cac0d6d + b8815e0 commit c49b5b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styles from "./page.module.css";
33
import { plainClient } from "@/lib/plainClient";
44
import { ThreadRow } from "@/components/threadRow";
55
import { PaginationControls } from "@/components/paginationControls";
6+
import { ThreadStatus } from "@team-plain/typescript-sdk";
67

78
export const fetchCache = "force-no-store";
89

@@ -20,6 +21,7 @@ export default async function Home({
2021
// Note that if you provide multiple filters they are combined with AND rather than OR.
2122
// customerIds: ["c_01J28ZQKJX9CVRXVHBMAXNSV5G"],
2223
tenantIdentifiers: [{ externalId: TENANT_EXTERNAL_ID }],
24+
statuses: [ThreadStatus.Todo, ThreadStatus.Snoozed],
2325
},
2426
after: searchParams.after as string | undefined,
2527
before: searchParams.before as string | undefined,

0 commit comments

Comments
 (0)