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

This commit is contained in:
Stuart Long Chay Boon
2022-10-31 00:34:32 +08:00
parent 1e0890b02c
commit bd3d1594b7

View File

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