Skip to content

Commit

Permalink
fix(server): IResponse type def error (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored May 29, 2023
1 parent 6d94fd2 commit aafde83
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion server/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@



docker buildx build --platform linux/amd64,linux/arm64 --push -t docker.io/lafyun/laf-server:dev -f Dockerfile .
docker buildx build --platform linux/amd64,linux/arm64 --push -t docker.io/lafyun/laf-server:debug -f Dockerfile .
7 changes: 1 addition & 6 deletions server/src/account/account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ import {
Res,
UseGuards,
} from '@nestjs/common'
import {
ApiBearerAuth,
ApiExcludeEndpoint,
ApiOperation,
ApiTags,
} from '@nestjs/swagger'
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger'
import { JwtAuthGuard } from 'src/auth/jwt.auth.guard'
import { IRequest, IResponse } from 'src/utils/interface'
import { ApiResponseObject, ResponseUtil } from 'src/utils/response'
Expand Down
4 changes: 3 additions & 1 deletion server/src/utils/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ export interface IRequest extends Request {
[key: string]: any
}

export type IResponse = Response
export interface IResponse extends Response {
[key: string]: any
}
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"prettier": "prettier --write ./src",
"prepare": "cd .. && husky install web/.husky",
"intercept": "telepresence intercept laf-web -n laf-system -p 3001:80",
"leave": "telepresence leave laf-web-laf-system",
"lint-staged": "lint-staged"
},
"dependencies": {
Expand Down

0 comments on commit aafde83

Please sign in to comment.