[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) { } else {
// return result.discussion.filter((x) => x.replyingToId === null); throw new trpc.TRPCError({
// } code: 'UNAUTHORIZED',
message: 'Wrong userId or token.',
// return result; });
} }
throw new trpc.TRPCError({
code: 'UNAUTHORIZED',
message: 'Wrong userId or token.',
});
}, },
}); });

Loading…
Cancel
Save