Checkpoints: WORKS but not for all
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
package com.plannaplan.services;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import com.plannaplan.entities.Assignment;
|
||||
import com.plannaplan.entities.Exchange;
|
||||
import com.plannaplan.entities.Groups;
|
||||
import com.plannaplan.repositories.ExchangeRepository;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -19,4 +23,8 @@ public class ExchangeService {
|
||||
public Exchange save(Exchange exchange){
|
||||
return this.repo.save(exchange);
|
||||
}
|
||||
|
||||
public Optional<Exchange> checkForExchange(Assignment assignment, Groups group){
|
||||
return this.repo.checkForExchange(assignment, group);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user