[offers][fix] fix error bug in delete comment

pull/464/head
Stuart Long Chay Boon 2 years ago
parent 1e0890b02c
commit bd3d1594b7

@ -321,16 +321,11 @@ export const offersCommentsRouter = createRouter()
},
});
// If (result) {
// return result.discussion.filter((x) => x.replyingToId === null);
// }
// return result;
} else {
throw new trpc.TRPCError({
code: 'UNAUTHORIZED',
message: 'Wrong userId or token.',
});
}
throw new trpc.TRPCError({
code: 'UNAUTHORIZED',
message: 'Wrong userId or token.',
});
},
});

Loading…
Cancel
Save