Handle null outfit creator, oops!
This commit is contained in:
parent
fd931c064e
commit
ddd224c8d1
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ const resolvers = {
|
|||
},
|
||||
creator: async ({ id }, _, { outfitLoader }) => {
|
||||
const outfit = await outfitLoader.load(id);
|
||||
return { id: outfit.userId };
|
||||
return outfit.userId ? { id: outfit.userId } : null;
|
||||
},
|
||||
},
|
||||
Query: {
|
||||
|
|
Loading…
Reference in a new issue