Hey Amy!
Hope you are well! Great tutorial by the way!! I appreciate the detail!
I was wondering in these lines of code in the List.tsx page do we not need to have a filter for user id so that users are not seeing all of the applications?
const applications = await db.application.findMany({
include: {
status: true,
company: {
include: {
contacts: true,
},
},
},
where: {
archived: status === "archived" ? true : false,
},
});
Basically something like:
where: {
user: ctx.user.id ?? ""
}
Or is that happening automatically behind the scenes and I missed that getting explained?