mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-27 20:22:33 +08:00
[offers][fix] fix error bug in delete comment
This commit is contained in:
@ -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.',
|
||||
});
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user