Skip to content

Commit

Permalink
fix(post): remove password log in console
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jul 18, 2022
1 parent 4b401f8 commit 8a88cfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/modules/post/post.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export class PostController {
async getByCategoryAndSlug(@Param() params: CategoryAndSlugDto, @IsMaster() isMaster: boolean, @Cookies("password") password: any) {
const { category, slug } = params;
const categoryDocument = await this.postService.getCategoryBySlug(category);
console.log(password);
if (password === undefined || !password) password = null;
console.log(password);
if (!categoryDocument) {
throw new NotFoundException("该分类不存在w");
}
Expand Down

0 comments on commit 8a88cfc

Please sign in to comment.