MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / mark

Function mark

apps/web/services/notifications.ts:4–19  ·  view source on GitHub ↗
({
  authId,
  threadId,
}: {
  authId: string;
  threadId: string;
})

Source from the content-addressed store, hash-verified

2
3// mark as read
4export async function mark({
5 authId,
6 threadId,
7}: {
8 authId: string;
9 threadId: string;
10}) {
11 const notification = await prisma.notifications.findFirst({
12 where: { authId, threadId },
13 });
14 if (!notification) {
15 return { ok: false, result: 'not_found' };
16 }
17 await prisma.notifications.delete({ where: { id: notification.id } });
18 return { ok: true, result: 'deleted' };
19}
20
21export async function getSettings({ authId }: { authId: string }) {
22 return await prisma.auths.findUnique({

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected