Fix API methods + domain_checker indentation
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

This commit is contained in:
2025-12-13 15:42:26 +01:00
parent fde66af049
commit e6ce5eaaeb
2 changed files with 15 additions and 14 deletions

View File

@ -459,7 +459,7 @@ class DomainChecker:
'object does not exist',
]
if any(phrase in error_str for phrase in not_found_phrases):
return DomainCheckResult(
return DomainCheckResult(
domain=domain,
status=DomainStatus.AVAILABLE,
is_available=True,

View File

@ -338,19 +338,20 @@ class ApiClient {
// Marketplace Listings (Pounce Direct)
async getMarketplaceListings() {
// TODO: Implement backend endpoint for marketplace listings
// For now, return empty array
return Promise.resolve({
listings: [] as Array<{
id: number
domain: string
price: number
is_negotiable: boolean
verified: boolean
seller_name: string
created_at: string
}>
})
return this.request<any[]>('/listings')
}
// My Listings
async getMyListings() {
return this.request<any[]>('/listings/my')
}
async createListing(data: { domain: string; asking_price: number | null; currency: string; price_type: string }) {
return this.request<any>('/listings', { method: 'POST', body: JSON.stringify(data) })
}
async deleteListing(id: number) {
return this.request<void>(`/listings/${id}`, { method: 'DELETE' })
}
// Subscription