removed length check

This commit is contained in:
Miodec 2023-02-19 13:14:08 +01:00
parent 8f14a943a9
commit 126e67811c

View file

@ -156,11 +156,7 @@ export async function addResult(
const resulthash = result.hash;
delete result.hash;
delete result.stringified;
if (
req.ctx.configuration.results.objectHashCheckEnabled &&
resulthash.length === 40
) {
//if its not 64 that means client is still using old hashing package
if (req.ctx.configuration.results.objectHashCheckEnabled) {
const serverhash = objectHash(result);
if (serverhash !== resulthash) {
Logger.logToDb(