change task.userId to task.user.id