feat: 산책 메이트에서 본인 강아지 제외 (mates 에 userId 전달)
CI / build (push) Failing after 15m8s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-11 13:58:30 +09:00
parent 56255c0ae6
commit 0f77f71869
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ export interface CheckInResult {
export const spotsApi = {
list: () => http.get<Spot[]>('/api/spots'),
mates: (spotId: number) => http.get<Mate[]>(`/api/spots/${spotId}/mates`),
mates: (spotId: number, userId?: number) =>
http.get<Mate[]>(`/api/spots/${spotId}/mates${userId ? `?userId=${userId}` : ''}`),
aiMates: (spotId: number, dogId: number) =>
http.get<AiMate[]>(`/api/spots/${spotId}/ai-mates?dogId=${dogId}`),
reviews: (spotId: number) => http.get<Review[]>(`/api/spots/${spotId}/reviews`),
+4 -1
View File
@@ -183,7 +183,10 @@ async function onSelectSpot(spotId: number) {
}
async function refreshSpot(spotId: number) {
const [r, m] = await Promise.all([spotsApi.reviews(spotId), spotsApi.mates(spotId)])
const [r, m] = await Promise.all([
spotsApi.reviews(spotId),
spotsApi.mates(spotId, currentUserId()),
])
reviews.value = r
mates.value = m
}