fixing findLinks updating wrong links, improving findLinks perf

Test Plan: npm run test

Reviewers: danny

Reviewed By: danny

CC: josh, diana, jason

Differential Revision: https://50.18.170.14/D4413