Skip to content

Commit 727bb33

Browse files
committed
feat: set timeout for guest ticket creation API to 60 seconds to handle potential delays
1 parent b160687 commit 727bb33

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/ticket-admin/src/data/admin/postGuestTickets

apps/ticket-admin/src/data/admin/postGuestTickets/mutation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export const usePostGuestTicketsMutation = (
3030
const { data } = await instance.post<PostGuestTicketsResponse>(
3131
API_URL.ADMIN.GUEST_TICKETS,
3232
params,
33+
// MEMO: guest 티켓 생성 API는 처리 시간이 길어질 수 있어 타임아웃을 60초로 설정
34+
// 추후 성준이가 비동기로 메일 보내도록 변경하면 제거할 것
35+
{ timeout: 60_000 },
3336
);
3437

3538
return data;

0 commit comments

Comments
 (0)