mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-06 12:27:46 +00:00
Update DiscourseService.js
Accounted for the changed ambassador group names
This commit is contained in:
@@ -14,12 +14,12 @@ export async function getAmbassadors(expert, limit, offset) {
|
|||||||
try {
|
try {
|
||||||
if (expert) {
|
if (expert) {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
discourseBaseURL() + 'groups/ambassador_expert/members.json?limit=' + limit + '&offset=' + offset,
|
discourseBaseURL() + 'groups/expert_ambassadors/members.json?limit=' + limit + '&offset=' + offset,
|
||||||
);
|
);
|
||||||
return await response.json();
|
return await response.json();
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
discourseBaseURL() + 'groups/ambassador/members.json?limit=' + limit + '&offset=' + offset,
|
discourseBaseURL() + 'groups/ambassadors/members.json?limit=' + limit + '&offset=' + offset,
|
||||||
);
|
);
|
||||||
return await response.json();
|
return await response.json();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user