Skip to content

Commit

Permalink
Merge pull request #272 from lotteon2/develop
Browse files Browse the repository at this point in the history
[FIX] front
  • Loading branch information
ssjy4974 authored Jan 26, 2024
2 parents 075314d + ab880ca commit 4c0118a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 deletions.
41 changes: 0 additions & 41 deletions src/apis/auction/Auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,44 +53,3 @@ export const enter = async (auctionId: string): Promise<EnterResponse> => {
throw error
}
}

export const startBid = async (auctionId: string): Promise<AxiosResponse> => {
try {
const response = await authAxiosInstance.patch(
`${AUCTION_SERVICE_PREFIX_PATH}/admin/bids/start/${auctionId}`
)
return response
} catch (error) {
if (error instanceof AxiosError) {
if (error.response) {
if (error.response.status >= 400 && error.response.status < 500) {
await warningModal('알림', error.response.data.message)
console.error(`Client Error=${error.response.data.message}`)
} else if (error.response.status >= 500) {
openInternalServerErrorNotification()
console.error('Internal Server Error')
}
}
}
throw error
}
}

export const endBid = async (auctionId: string): Promise<void> => {
try {
await authAxiosInstance.patch(`${AUCTION_SERVICE_PREFIX_PATH}/admin/bids/end/${auctionId}`)
} catch (error) {
if (error instanceof AxiosError) {
if (error.response) {
if (error.response.status >= 400 && error.response.status < 500) {
await warningModal('알림', error.response.data.message)
console.error(`Client Error=${error.response.data.message}`)
} else if (error.response.status >= 500) {
openInternalServerErrorNotification()
console.error('Internal Server Error')
}
}
}
throw error
}
}
2 changes: 1 addition & 1 deletion src/views/ChatView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { onMounted, onUnmounted, ref, nextTick, computed } from 'vue'
import { StatisticCountdown, message, Image, ImagePreviewGroup, Modal } from 'ant-design-vue'
import type { CreateBidRequest, ReadAuctionResponse } from '@/apis/auction/AuctionDto'
import type { ReadProductDetailResponse } from '@/apis/product/ProductDto'
import { createBid, enter, startBid, endBid } from '@/apis/auction/Auction'
import { createBid, enter} from '@/apis/auction/Auction'
import { useRoute } from 'vue-router'
import { useAuctionStore } from '@/stores/auction/AuctionStore'
import { useMemberStore } from '@/stores/member/MemberStore'
Expand Down

0 comments on commit 4c0118a

Please sign in to comment.