Skip to content

Commit 2437ec1

Browse files
committed
log iam patch response
1 parent e48c149 commit 2437ec1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/ui/pages/siglead/ViewSigLead.page.tsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,24 @@ export const AddMemberToSigPage: FC = () => {
204204
rid: string;
205205
};
206206

207-
await api.patch(`/api/v1/iam/groups/:${data.groupid}`, {
208-
add: [data.aid],
209-
remove: [data.rid],
210-
});
207+
try {
208+
const response = await api.patch(`/api/v1/iam/groups/:${data.groupid}`, {
209+
add: [data.aid],
210+
remove: [data.rid],
211+
});
212+
213+
console.warn(`GRAPH API RESPONSE: ${response}`);
214+
notifications.show({
215+
message: JSON.stringify(response),
216+
});
217+
} catch (error) {
218+
notifications.show({
219+
message: JSON.stringify(error),
220+
});
221+
}
222+
223+
// console.log(response);
224+
211225
// console.log(
212226
// `/api/v1/iam/groups/:${data.groupid}`,
213227
// { add: [data.aid], remove: [data.rid] },

0 commit comments

Comments
 (0)