Advertisement
Guest User

Untitled

a guest
May 25th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Mutation('joinParty')
  2.   async joinParty(@Args() args: { where: JoinPartyWhereInput }, @Info() info) {
  3.     // 100 points for someone who tells me why I'm using arrow function here
  4.     // instead of normal function declaration :)
  5.     const makeDeletePartyPromise = (partyId: string) => {
  6.       return this.prisma.mutation.deletePartyInvitation({
  7.         where: { id: partyId },
  8.       });
  9.     };
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement