Commit 348282f6 authored by Lokesh Singh's avatar Lokesh Singh

Object->Task

parent 57cde50e
......@@ -27,9 +27,9 @@ public class UserController {
}
@GetMapping(value = "/{id}")
public Mono<Tuple2<User, Object>> findUserAndTaskByUserId(@PathVariable("id") String userId) {
public Mono<Tuple2<User, Task>> findUserAndTaskByUserId(@PathVariable("id") String userId) {
// get user object with respective user task
Mono<Tuple2<User, Object>> monoUser = this.getUserById(userId)
Mono<Tuple2<User, Task>> monoUser = this.getUserById(userId)
.zipWhen(user -> {
Mono<Task> userTask = this.getTaskByEmailId(user.getEmailId());
return userTask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment