aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-08-22 14:21:53 +0200
committerMiodec <[email protected]>2024-08-22 14:23:20 +0200
commit38e0d5088561975c359e8326ff3d72f31ceaffef (patch)
tree0266f6b20c2f460620033e1dc002939fe31f3349 /backend
parenta53d60207c36389d6ae2ac69923b7a1edbd1f7c5 (diff)
downloadmonkeytype-38e0d5088561975c359e8326ff3d72f31ceaffef.tar.gz
monkeytype-38e0d5088561975c359e8326ff3d72f31ceaffef.zip
chore(server): warn if object hash check is disabled
Diffstat (limited to 'backend')
-rw-r--r--backend/src/api/controllers/result.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/src/api/controllers/result.ts b/backend/src/api/controllers/result.ts
index 5ac1a8ef7..55303acaa 100644
--- a/backend/src/api/controllers/result.ts
+++ b/backend/src/api/controllers/result.ts
@@ -218,6 +218,8 @@ export async function addResult(
const status = MonkeyStatusCodes.RESULT_HASH_INVALID;
throw new MonkeyError(status.code, "Incorrect result hash");
}
+ } else {
+ Logger.warning("Object hash check is disabled, skipping hash check");
}
if (completedEvent.funbox) {