Assignments Controller test + authj test fix
This commit is contained in:
1 parent
fe5d2d20c3
commit
73104850fe
3 files changed
+33
-9
No files matched your search
@@ -30,7 +30,7 @@ public class CommisionService {
|
||||
}
|
||||
|
||||
public Optional<Commision> getNewestCommision(User user) {
|
||||
return Optional.of(this.repo.getNewestCommision(user.getId()).get(0));
|
||||
return this.repo.getNewestCommision(user.getId()).stream().findFirst();
|
||||
}
|
||||
|
||||
public long getCommisionsAmmount() {
|
||||
|
||||
Reference in new issue
Block a user