removed unused variables + bugfixes
This commit is contained in:
parent
2279ebb89c
commit
e0a8aa5a14
|
@ -49,7 +49,7 @@ public class AuctionStartedEventListenerWebSubAdapter {
|
|||
@PostMapping(path = "/auction-started/74c72c7f-2739-4124-aa35-a3225171a97c")
|
||||
public ResponseEntity<Void> handleExecutorAddedEvent(@RequestBody String payload) throws URISyntaxException {
|
||||
|
||||
System.out.println("new auctions :O");
|
||||
System.out.println("new websub auctions");
|
||||
System.out.println(payload);
|
||||
|
||||
|
||||
|
@ -57,16 +57,6 @@ public class AuctionStartedEventListenerWebSubAdapter {
|
|||
if (auctions.length() > 0) {
|
||||
JSONObject auction = auctions.getJSONObject(0);
|
||||
System.out.print(auction);
|
||||
// try {
|
||||
// System.out.println(auction.getString("deadline"));
|
||||
// System.out.println(AuctionJsonRepresentation.deserialize(auction.toString()));
|
||||
|
||||
// auctionStartedHandler.handleAuctionStartedEvent(
|
||||
// new AuctionStartedEvent(AuctionJsonRepresentation.deserialize(auction.toString())));
|
||||
// } catch (JsonProcessingException e) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
|
||||
String auctionHouseURI = "https://tapas-auction-house.86-119-35-40.nip.io/";
|
||||
|
@ -76,9 +66,6 @@ public class AuctionStartedEventListenerWebSubAdapter {
|
|||
// TODO Sanitize URIs
|
||||
String auctionId = auction.getString("auctionId");
|
||||
String auctionHouseUri = auction.getString("auctionHouseUri");
|
||||
String taskUri = auction.getString("taskUri");
|
||||
String taskType = auction.getString("taskType");
|
||||
String deadline = auction.getString("deadline");
|
||||
|
||||
var bid = new Bid(
|
||||
new Auction.AuctionId(auctionId),
|
||||
|
@ -110,22 +97,8 @@ public class AuctionStartedEventListenerWebSubAdapter {
|
|||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
//LOGGER.info(postResponse.statusCode());
|
||||
};
|
||||
|
||||
// for (JSONObject auction : auctions) {
|
||||
// auctionStartedHandler.handleAuctionStartedEvent(
|
||||
// new AuctionStartedEvent(
|
||||
// new Auction(new AuctionId(auction.getAuctionId()),
|
||||
// new AuctionHouseUri(new URI(auction.getAuctionHouseUri())),
|
||||
// new AuctionedTaskUri(new URI(auction.getTaskUri())),
|
||||
// new AuctionedTaskType(auction.getTaskType()),
|
||||
// new AuctionDeadline(auction.getDeadline()))
|
||||
// ));
|
||||
// }
|
||||
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user