fixed the error translation from the statusCodeError type into a corresponding graph api Error representation

This commit is contained in:
Roman Perekhod
2024-06-07 14:14:13 +02:00
parent 743eb568b1
commit eb95a2859d
11 changed files with 60 additions and 29 deletions

View File

@@ -55,7 +55,7 @@ func (g BaseGraphService) getSpaceRootPermissions(ctx context.Context, spaceID *
}
space, err := utils.GetSpace(ctx, spaceID.GetOpaqueId(), gatewayClient)
if err != nil {
return nil, err
return nil, errorcode.FromUtilsStatusCodeError(err)
}
return g.cs3SpacePermissionsToLibreGraph(ctx, space, APIVersion_1_Beta_1), nil