-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 💄 style: eslint 깨지는 파일 수정 * 📝 docs: stockId 잘못 들어 있던 데코레이터 수정 * 📝 docs: response alarmresponse 로 수정 * 🐛 fix: bigint가 런타임때는 string으로 작동, decimal 15,2로 변경 * 🐛 fix: stock id를 이상하게 호출하는 문제 해결, express 와 동일한 구조로 되어있어 라우터 등록 순서에 영향 받는 다는 것을 간과함 * 🐛 fix: put 에러 수정, alarmDate -\> alarmExpiredDate로 명확화 * 📝 docs: reqeust 업데이트 * 🐛 fix: alarmDate 업데이트 * 🐛 fix: alarmExpiredDate로 변환, 이에 맞춰 docs도 업데이트 * ✨ feat: 알림 서비스 검증 로직 구현 * 📝 docs: 알림 docs 에러 수정 * 🐛 fix: expired date 논리 오류 수정 * 📝 docs: 원 추가 * 🐛 fix: api/alarm/stock 받아올 때 중복 stock 수정 * 📝 docs: swagger 성공하게 변경 * 💄 style: 줄 제약으로 인한 커스텀 데코레이터 적용 * 🐛 fix: response에 number 추가
- Loading branch information
1 parent
53dec2b
commit 9add4dc
Showing
4 changed files
with
32 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { applyDecorators, UseGuards } from '@nestjs/common'; | ||
import { ApiBadRequestResponse } from '@nestjs/swagger'; | ||
import SessionGuard from '@/auth/session/session.guard'; | ||
|
||
export const WrongAlarmApi = () => { | ||
return applyDecorators( | ||
ApiBadRequestResponse({ | ||
description: '유효하지 않은 알람 입력값으로 인해 예외가 발생했습니다.', | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
statusCode: { type: 'number', example: 400 }, | ||
message: { | ||
type: 'string', | ||
example: '알람 조건을 다시 확인해주세요.', | ||
}, | ||
error: { type: 'string', example: 'Bad Request' }, | ||
}, | ||
}, | ||
}), | ||
UseGuards(SessionGuard), | ||
); | ||
}; |
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