()
| 41 | }; |
| 42 | |
| 43 | export 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 | }; |
no outgoing calls
no test coverage detected