loving that live fixing on production
This commit is contained in:
+7
-1
@@ -715,7 +715,13 @@ public class MembershipManager {
|
|||||||
*/
|
*/
|
||||||
protected List<JsonObject> fetchAllOrderPositions(String path, MultiValueMap<String, String> queryParams,
|
protected List<JsonObject> fetchAllOrderPositions(String path, MultiValueMap<String, String> queryParams,
|
||||||
List<JsonObject> result) {
|
List<JsonObject> result) {
|
||||||
JsonObject orderPositions = pretixManager.request(path, HttpMethod.GET, queryParams).getAsJsonObject();
|
JsonElement response = pretixManager.request(path, HttpMethod.GET, queryParams);
|
||||||
|
|
||||||
|
if (response == null) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
JsonObject orderPositions = response.getAsJsonObject();
|
||||||
|
|
||||||
for (JsonElement element : orderPositions.getAsJsonArray("results")) {
|
for (JsonElement element : orderPositions.getAsJsonArray("results")) {
|
||||||
JsonObject orderPosition = element.getAsJsonObject();
|
JsonObject orderPosition = element.getAsJsonObject();
|
||||||
|
|||||||
Reference in New Issue
Block a user