mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
vue_visgraph: basically display persons, household, courses and edges between them
This commit is contained in:
@@ -78,14 +78,14 @@ const getHouseholdByPerson = (person) => {
|
||||
}
|
||||
|
||||
/**
|
||||
* @function getCourseByPerson
|
||||
* @function getCoursesByPerson
|
||||
* @param person
|
||||
* @returns {Promise<Response>}
|
||||
*/
|
||||
const getCourseByPerson = (person) => {
|
||||
//console.log('getCourseByPerson', person.id)
|
||||
const getCoursesByPerson = (person) => {
|
||||
//console.log('getCoursesByPerson', person._id)
|
||||
return getFetch(
|
||||
`/api/1.0/person/accompanying-course/by-person/${person.id}.json`)
|
||||
`/api/1.0/person/accompanying-course/by-person/${person._id}.json`)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,7 +119,7 @@ const postRelationship = (person) => {
|
||||
|
||||
export {
|
||||
getHouseholdByPerson,
|
||||
getCourseByPerson,
|
||||
getCoursesByPerson,
|
||||
getRelationship,
|
||||
postRelationship
|
||||
}
|
||||
|
Reference in New Issue
Block a user