Skip to content

Commit

Permalink
Fix: 경로 수정 및 Polling 시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Nov 14, 2024
1 parent daf57f8 commit b68bcd4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/add/components/field/CategoriesField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CategoriesField = ({ form }: CategoriesFieldProps) => {
render={({ field }) => (
<FormItem>
<FormLabel className='text-xl'>
선호하는 카테고리를 선택해주세요. (최대 3개)
선호하는 카테고리를 선택해주세요. (3개 입력해주세요.)
</FormLabel>
<FormControl>
<ButtonWrapper>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/auto/apis/postHighlightSelection.api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchInstance } from '@/apis';
import { fetchFastInstance } from '@/apis';

export type hightlightSelectionRequestProps = {
index: number;
Expand All @@ -24,7 +24,7 @@ export type hightlightSelectionResponseProps = {
createdAt: Date;
};

const postHighlightSelectionPath = () => '/api/videos/highlight-selection';
const postHighlightSelectionPath = () => '/select-highlight';

export const postHighlightSelection = async ({
index,
Expand All @@ -33,7 +33,7 @@ export const postHighlightSelection = async ({
memberId,
categoryId,
}: hightlightSelectionRequestProps): Promise<hightlightSelectionResponseProps> => {
const response = await fetchInstance.post(postHighlightSelectionPath(), {
const response = await fetchFastInstance.post(postHighlightSelectionPath(), {
index,
fileName,
title,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auto/components/loading/ProgressView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ProgressView = ({
updateProgressBar(refetchedData?.status ?? '');
}
}
}, 8000);
}, 5000);

return () => {
clearInterval(pollingInterval);
Expand Down
6 changes: 3 additions & 3 deletions src/pages/main/mocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export const FetchShortsHandler = [
const mockData: ShortsVideoProps[] = Array.from(
{ length: 50 },
(_, index) => ({
videoId: index + 1,
video_id: index + 1,
thumbnail: mockImg,
title: `Mocking Data ${index + 1}`,
memberId: index % 5,
createdAt: new Date().toISOString(),
member_id: index % 5,
created_at: new Date().toISOString(),
})
);

Expand Down

0 comments on commit b68bcd4

Please sign in to comment.