Skip to content

Commit

Permalink
release: 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 16, 2024
1 parent b210c72 commit 4016f08
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/net/teumteum/controller/QaController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package net.teumteum.controller;

import lombok.RequiredArgsConstructor;
import net.teumteum.meeting.domain.EndMeetingAlerted;
import net.teumteum.meeting.service.MeetingService;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class QaController {

private final MeetingService meetingService;
private final ApplicationEventPublisher eventPublisher;

@GetMapping("/forcereviewalarm")
public void forcereviewalarm(@RequestParam("meetingId") Long meetingId,
@RequestParam("userId") Long userId) {
var meeting = meetingService.getMeetingById(meetingId, userId);
eventPublisher.publishEvent(new EndMeetingAlerted(meeting.id(), meeting.title(), meeting.participantIds()));
}
}

0 comments on commit 4016f08

Please sign in to comment.