Issue with findOne function


this is how the function looks like