mirror of
https://gitea.gofwd.group/Forward_Group/ballistic-builder-spring.git
synced 2026-01-20 16:51:03 -05:00
fixed emailController
This commit is contained in:
@@ -98,9 +98,9 @@ public class EmailController {
|
||||
}
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public ResponseEntity<Void> deleteItem(@PathVariable Integer id) {
|
||||
return brandService.findById(id)
|
||||
return emailRequestRepository.findById(Long.valueOf(id))
|
||||
.map(item -> {
|
||||
brandService.deleteById(id);
|
||||
emailRequestRepository.deleteById(Long.valueOf(id));
|
||||
return ResponseEntity.noContent().<Void>build();
|
||||
})
|
||||
.orElse(ResponseEntity.notFound().build());
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package group.goforward.battlbuilder.services.utils;
|
||||
|
||||
import aj.org.objectweb.asm.commons.Remapper;
|
||||
import group.goforward.battlbuilder.model.EmailRequest;
|
||||
|
||||
public interface EmailService {
|
||||
EmailRequest sendEmail(String recipient, String subject, String body);
|
||||
void deleteById(Integer id);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user