Skip to content

Commit cd06fe2

Browse files
kon-irogavinbarron
andauthored
fix: getGroupImage Endpoint Fix (#1883)
corrected typo in url used to load group photo information Co-authored-by: Gavin Barron <[email protected]>
1 parent 20bd6cf commit cd06fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt-components/src/graph/graph.photos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export async function getGroupImage(graph: IGraph, group: any, useContactsApis:
245245
} else if (photoDetails) {
246246
// there is a photo in the cache, but it's stale
247247
try {
248-
const response = await graph.api(`group/${groupId}/photo`).get();
248+
const response = await graph.api(`groups/${groupId}/photo`).get();
249249
if (
250250
response &&
251251
(response['@odata.mediaEtag'] !== photoDetails.eTag ||

0 commit comments

Comments
 (0)