fixed error where project is leaked to other users in links page

pull/3/head
TZGyn 2 years ago
parent 45b341bf24
commit 7f481feb71
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -33,7 +33,9 @@ export const load = (async (event) => {
),
})
const projects = await db.query.project.findMany()
const projects = await db.query.project.findMany({
where: (project, { eq }) => eq(project.userId, user.id),
})
return { shorteners, projects }
}) satisfies PageServerLoad

Loading…
Cancel
Save