From 3cd0ffd764d1bddab0bea203abc5a525152f841a Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 18 Jun 2021 17:25:05 -0700 Subject: [PATCH] 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! --- src/server/types/ClosetList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/types/ClosetList.js b/src/server/types/ClosetList.js index d85a240..91df135 100644 --- a/src/server/types/ClosetList.js +++ b/src/server/types/ClosetList.js @@ -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) {