Fix private lists page

Oops, I pulled `currentUserId` from the wrong place, so it was always acting as if you're logged in! Now, you can see the list page for your own private list!
This commit is contained in:
Emi Matchu 2021-06-18 17:25:05 -07:00
parent d386ccfad8
commit 3cd0ffd764

View file

@ -133,7 +133,7 @@ const resolvers = {
},
Query: {
closetList: async (_, { id, currentUserId }, { closetListLoader }) => {
closetList: async (_, { id }, { currentUserId, closetListLoader }) => {
// TODO: Accept the `not-in-a-list` case too!
const closetList = await closetListLoader.load(id);
if (!closetList) {