roster bugfixes

This commit is contained in:
2021-12-14 22:19:32 +01:00
parent 45edd76c8b
commit 69b5949f71
3 changed files with 8 additions and 2 deletions

View File

@@ -11,10 +11,14 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import ch.unisg.roster.roster.application.port.out.LaunchAuctionEventPort;
import ch.unisg.roster.roster.domain.event.LaunchAuctionEvent;
@Component
@Primary
public class LaunchAuctionEventAdapter implements LaunchAuctionEventPort {
@Value("${auction.house.uri}")
@@ -27,7 +31,7 @@ public class LaunchAuctionEventAdapter implements LaunchAuctionEventPort {
put("taskUri", launchAuctionEvent.taskUri);
put("taskType", launchAuctionEvent.taskType.getValue());
}};
var objectMapper = new ObjectMapper();
@@ -54,5 +58,5 @@ public class LaunchAuctionEventAdapter implements LaunchAuctionEventPort {
}
}
}

View File

@@ -1,6 +1,7 @@
server.port=8082
executor.robot.uri=http://127.0.0.1:8084
executor.computation.uri=http://127.0.0.1:8085
auction.house.uri=http://127.0.0.1:8086
task.list.uri=http://127.0.0.1:8081
mqtt.broker.uri=tcp://localhost:1883