Update repositoryController.js

Use the repo id instead of repo name for the metrics table