rename fetch api method

This commit is contained in:
2021-10-27 16:29:16 +02:00
parent a3b203c306
commit 7ad0e2f2c8
2 changed files with 8 additions and 8 deletions

View File

@@ -89,14 +89,14 @@ const getCoursesByPerson = (person) => {
}
/**
* @function getRelationship
* @function getRelationshipByPerson
* @param person
* @returns {Promise<Response>}
*/
const getRelationship = (person) => {
//console.log('getRelationship', person.id)
const getRelationshipByPerson = (person) => {
//console.log('getRelationshipByPerson', person.id)
return getFetch(
`/api/1.0/relations/relationship/by-person/${person.id}.json`)
`/api/1.0/relations/relationship/by-person/${person._id}.json`)
}
/**
@@ -120,6 +120,6 @@ const postRelationship = (person) => {
export {
getHouseholdByPerson,
getCoursesByPerson,
getRelationship,
getRelationshipByPerson,
postRelationship
}