Skip to content

Commit 5c50995

Browse files
committed
Refactor with type assertion
1 parent f321347 commit 5c50995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popo/reservation/place/reserve.place.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export class ReservePlaceController {
281281
@UseGuards(JwtAuthGuard)
282282
async delete(@Param('uuid') uuid: string, @Req() req) {
283283
const reservation = await this.reservePlaceService.findOneByUuidOrFail(uuid);
284-
const user = req.user;
284+
const user = req.user as JwtPayload;
285285

286286
if (user.userType == UserType.admin || user.userType == UserType.staff) {
287287
await this.reservePlaceService.remove(uuid);

0 commit comments

Comments
 (0)