File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const app = express();
2626//CORS 설정
2727const allowedOrigins : string [ ] = [
2828 "http://localhost:3001" ,
29- "https://52.78.245.231.nip.io" , // 백엔드 도메인도 허용
29+ "https://moving-fe-e1p7.vercel.app" ,
3030] ;
3131// CORS 설정
3232const corsOptions : CorsOptions = {
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ interface CursorQueryString {
1010interface WhereCondition {
1111 keyword ?: string ;
1212 OR ?: object [ ] ;
13- services ?: object ;
13+ AND ?: object [ ] ;
14+ quote ?: object ;
15+ movingDate ?: object ;
1416}
1517
1618interface OffsetQueryString {
Original file line number Diff line number Diff line change @@ -186,8 +186,16 @@ const getMovingRequestListByMover = async (
186186 in : regions ,
187187 } ;
188188
189+ const countCondition = {
190+ quote : whereCondition . quote ,
191+ OR : whereCondition . OR ,
192+ AND : whereCondition . AND ,
193+ movingDate : whereCondition . movingDate ,
194+ region : whereCondition . region ,
195+ } ;
196+
189197 const serviceCountsPromise =
190- movingRequestRepository . getMovingRequestCountByServices ( ) ;
198+ movingRequestRepository . getMovingRequestCountByServices ( countCondition ) ;
191199
192200 const totalCountPromise = movingRequestRepository . getTotalCount ( ) ;
193201 const designatedCountPromise =
You can’t perform that action at this time.
0 commit comments