feature/child_mode_2 #158
|
@ -29,7 +29,7 @@ public class RewardDataImpl implements RewardData {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<Integer> getTotalReward(String childId) {
|
public CompletableFuture<Integer> getTotalReward(String childId) { // TODO: localCacheを使う
|
||||||
return CompletableFuture.supplyAsync(() -> ksActions.syncHistory(childId).join().stream().mapToInt(HistoryModel::getReward).sum());
|
return CompletableFuture.supplyAsync(() -> ksActions.syncHistory(childId).join().stream().mapToInt(HistoryModel::getReward).sum());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user