refactor: update pet action handling and restructure pet types for better clarity
This commit is contained in:
@@ -28,7 +28,7 @@ export async function createPet(data: PetCreationRequest): Promise<Pet> {
|
||||
|
||||
export async function updatePetAction(petId: string, data: PetUpdateActionRequest): Promise<Pet> {
|
||||
try {
|
||||
const response = await api.put<Pet>(`/api/v1/pet/${petId}/action/gather`, data);
|
||||
const response = await api.put<Pet>(`/api/v1/pet/${petId}/action`, data);
|
||||
return response.data;
|
||||
} catch (error: any) {
|
||||
console.error('Failed to update pet action:', error.message);
|
||||
|
Reference in New Issue
Block a user