MCPcopy Create free account
hub / github.com/code100x/cms / getBookmarkData

Function getBookmarkData

src/db/bookmark.ts:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41};
42
43export const getBookmarkData = async () => {
44 const session = await getServerSession(authOptions);
45 const userId = session?.user.id;
46
47 return await db.bookmark.findMany({
48 where: {
49 userId,
50 },
51 orderBy: {
52 createdAt: 'desc',
53 },
54 });
55};

Callers 1

getFullCourseContentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected