This commit is contained in:
Shrikant Sharat Kandula 2021-06-18 10:43:10 +05:30
parent 11218c2b19
commit 45b062b83b

View File

@ -79,7 +79,7 @@ public class ApplicationController extends BaseController<ApplicationService, Ap
public Mono<ResponseDTO<Boolean>> publish(@PathVariable String applicationId) {
return applicationPageService.publish(applicationId)
.map(application -> {
// This even should parallel a similar even sent from the client, so we want it to be sent by the
// This event should parallel a similar even sent from the client, so we want it to be sent by the
// controller and not the service method.
applicationPageService.sendApplicationPublishedEvent(application);
// This will only be called when the publishing was successful, so we can always return `true` here.