diff --git a/backend/api/controllers/result.ts b/backend/api/controllers/result.ts index 27e31e063..9090707e8 100644 --- a/backend/api/controllers/result.ts +++ b/backend/api/controllers/result.ts @@ -78,7 +78,10 @@ class ResultController { const resulthash = result.hash; delete result.hash; delete result.stringified; - if (req.ctx.configuration.resultObjectHashCheck.enabled) { + if ( + req.ctx.configuration.resultObjectHashCheck.enabled && + resulthash.length === 40 + ) { //if its not 64 that means client is still using old hashing package const serverhash = objectHash(result); if (serverhash !== resulthash) {