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) {
|
} 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.',
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user