fix(sync_user): only consider hooks for the right domain

Without this change the repo active state would be updated even if the
domain was wrong, so staging repositories would be “active” even if they
were only activated for production.