diff --git a/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts b/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts index edf0621c..ee0fbd05 100644 --- a/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts +++ b/packages/brain/src/modules/cron/trackValidatorsPerformance/trackValidatorsPerformance.ts @@ -133,7 +133,7 @@ export async function fetchAndInsertPerformanceCron({ function getValidatorPerformanceError(e: Error): ValidatorPerformanceError { if (e instanceof BeaconchainApiError) return { - code: ValidatorPerformanceErrorCode.EXECUTION_OFFLINE, + code: ValidatorPerformanceErrorCode.BEACONCHAIN_API_ERROR, message: e.message }; if (e instanceof BrainDbError)