mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-11 01:04:57 +00:00
activity: add location of the accompanying course
This commit is contained in:
@@ -36,6 +36,17 @@ const getLocationTypes = () => {
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Load Location Types by defaultFor
|
||||
* @param {string} entity - can be "person" or "thirdparty"
|
||||
*/
|
||||
const getLocationTypesByDefaultFor = (entity) => {
|
||||
return getLocationTypes().then(response =>
|
||||
response.results.filter(t => t.defaultFor === entity)[0]
|
||||
);
|
||||
};
|
||||
|
||||
/*
|
||||
* Post a Location
|
||||
*/
|
||||
@@ -59,5 +70,6 @@ export {
|
||||
getSocialActionByIssue,
|
||||
getLocations,
|
||||
getLocationTypes,
|
||||
getLocationTypesByDefaultFor,
|
||||
postLocation
|
||||
};
|
||||
|
Reference in New Issue
Block a user