--- app/(protected)/(basic)/boards/_components/board-post-form-modal.tsx
+++ app/(protected)/(basic)/boards/_components/board-post-form-modal.tsx
... | ... | @@ -193,7 +193,7 @@ |
| 193 | 193 |
<FoxToggleSwitch |
| 194 | 194 |
size="md" |
| 195 | 195 |
name="isPinned" |
| 196 |
- value="true" |
|
| 196 |
+ value="Y" |
|
| 197 | 197 |
label={isPinned ? '고정' : '미고정'}
|
| 198 | 198 |
checked={isPinned}
|
| 199 | 199 |
onChange={setIsPinned}
|
... | ... | @@ -237,7 +237,7 @@ |
| 237 | 237 |
<FoxToggleSwitch |
| 238 | 238 |
size="md" |
| 239 | 239 |
name="isVisible" |
| 240 |
- value="true" |
|
| 240 |
+ value="Y" |
|
| 241 | 241 |
label={isVisible ? '노출' : '미노출'}
|
| 242 | 242 |
checked={isVisible}
|
| 243 | 243 |
onChange={setIsVisible}
|
... | ... | @@ -250,7 +250,7 @@ |
| 250 | 250 |
<FoxToggleSwitch |
| 251 | 251 |
size="md" |
| 252 | 252 |
name="isPushEnabled" |
| 253 |
- value="true" |
|
| 253 |
+ value="Y" |
|
| 254 | 254 |
label={isPushEnabled ? '발송' : '미발송'}
|
| 255 | 255 |
checked={isPushEnabled}
|
| 256 | 256 |
onChange={setIsPushEnabled}
|
--- lib/data/repositories/board-post-repository.ts
+++ lib/data/repositories/board-post-repository.ts
... | ... | @@ -313,8 +313,7 @@ |
| 313 | 313 |
|
| 314 | 314 |
const result = await backendFetch<null>(`${BOARD_BASE_PATH}/${bbsId}`, {
|
| 315 | 315 |
method: 'PUT', |
| 316 |
- // 수정은 컨트롤러가 `@ParameterObject`라 쿼리스트링으로 받는다(본문이 아니다). |
|
| 317 |
- query: buildWriteParams(boardType, input), |
|
| 316 |
+ body: buildWriteParams(boardType, input), |
|
| 318 | 317 |
accessToken: accessToken ?? undefined, |
| 319 | 318 |
cache: 'no-store', |
| 320 | 319 |
// 쓰기 API는 성공해도 `data: null`을 돌려준다(ApiResponseVO.success(null)). |
... | ... | @@ -344,16 +343,16 @@ |
| 344 | 343 |
): Promise<void> {
|
| 345 | 344 |
const accessToken = await getSessionAccessToken(); |
| 346 | 345 |
|
| 347 |
- const query: Record<string, string> = {
|
|
| 346 |
+ const payload: Record<string, string> = {
|
|
| 348 | 347 |
stngId: BOARD_SETTING_IDS.inquiry, |
| 349 | 348 |
ansSttsCd: input.answerStatusCode, |
| 350 | 349 |
}; |
| 351 |
- if (input.answerContent) query.ansCn = input.answerContent; |
|
| 352 |
- if (input.attachmentId) query.atchFileId = input.attachmentId; |
|
| 350 |
+ if (input.answerContent) payload.ansCn = input.answerContent; |
|
| 351 |
+ if (input.attachmentId) payload.atchFileId = input.attachmentId; |
|
| 353 | 352 |
|
| 354 | 353 |
const result = await backendFetch<null>(`${BOARD_BASE_PATH}/${bbsId}`, {
|
| 355 | 354 |
method: 'PUT', |
| 356 |
- query, |
|
| 355 |
+ body: payload, |
|
| 357 | 356 |
accessToken: accessToken ?? undefined, |
| 358 | 357 |
cache: 'no-store', |
| 359 | 358 |
// 쓰기 API는 성공해도 `data: null`을 돌려준다(ApiResponseVO.success(null)). |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?