Function should only do one thing - Invalid example
Checking the db for "isClientActive" would likely return a promise, and this makes clientRecord.isActive always return false since clientRecord is actually a Promise which doesn't have isActive prop.. But even if fix that.. When we filter by this function for active clients we will get all record since this function returns a promise which evaluates to true when filtering
Feel free to open a PR fixing this! Thanks!
Want to know if this is still an issue..?
@anshul2807 I haven't fixed this. I see the issue is still in there
ok , I'm working on this issue.