Skip to content

Commit

Permalink
Make GQLMerlinService query table instead of deprecated action
Browse files Browse the repository at this point in the history
- remove reference to removed exception
  • Loading branch information
Mythicaeda committed Sep 27, 2023
1 parent bdf15b5 commit ed10782
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
{
final var request = """
query GetResourceTypes {
resourceTypes(missionModelId: "%d") {
resource_type(where: {model_id: {_eq: %d}}) {
name
schema
}
Expand All @@ -726,7 +726,7 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
final JsonObject response;
response = postRequest(request).get();
final var data = response.getJsonObject("data");
final var resourceTypesJsonArray = data.getJsonArray("resourceTypes");
final var resourceTypesJsonArray = data.getJsonArray("resource_type");

final var resourceTypes = new ArrayList<ResourceType>();

Expand All @@ -746,7 +746,6 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
* @param planId the plan id
* @return
* @throws IOException
* @throws MissionModelServiceException
* @throws MerlinServiceException
* @throws NoSuchPlanException
*/
Expand Down

0 comments on commit ed10782

Please sign in to comment.