forked from yy0ung/nibobnebob
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style : prettier구조로 npm run format 적용 #35
- Loading branch information
Showing
5 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { ExecutionContext, createParamDecorator } from "@nestjs/common"; | ||
|
||
export interface TokenInfo { | ||
id: number; | ||
id: number; | ||
} | ||
|
||
export const GetUser = createParamDecorator( | ||
(data, ctx: ExecutionContext): TokenInfo => { | ||
const req = ctx.switchToHttp().getRequest(); | ||
return req.user; | ||
} | ||
(data, ctx: ExecutionContext): TokenInfo => { | ||
const req = ctx.switchToHttp().getRequest(); | ||
return req.user; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters