Skip to content

Commit

Permalink
fix: block chat without auth context (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcwild committed Dec 7, 2023
1 parent 687572e commit d9c1160
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/chat/chat.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { AccessTokenGuard } from 'src/auth/jwt/jwt.guard';

// create a new chat in the database using post request
// get all chats from the database using get request

@UseGuards(AccessTokenGuard)
@Controller('chat*')
export class ChatController {
constructor(private chatService: ChatService) {}
Expand Down Expand Up @@ -197,7 +197,6 @@ export class ChatController {
}

// Patch to update a chat password if the user is the owner
@UseGuards(AccessTokenGuard)
@Patch('/password')
async updateChatPassword(
@Req() request: Request & { user: User },
Expand Down

0 comments on commit d9c1160

Please sign in to comment.