Server Script for fetching working hours of employee in salary slip

How can I add filter for employee in this filter?

I added like this below, but its not working…

May I know what I am missing

image