From 8da423f929ad5a7ca0db4deb2227c494563a3b41 Mon Sep 17 00:00:00 2001 From: Fatpandac <1779196284@qq.com> Date: Wed, 16 Feb 2022 19:41:50 +0800 Subject: [PATCH] fix(route): douckerhub/build guid is always the same (#9114) --- lib/v2/dockerhub/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/dockerhub/utils.js b/lib/v2/dockerhub/utils.js index e6ad13b55..970545b81 100644 --- a/lib/v2/dockerhub/utils.js +++ b/lib/v2/dockerhub/utils.js @@ -2,7 +2,7 @@ const md5 = require('@/utils/md5'); function hash(images) { const entries = Object.entries(images) - .map((x) => [`${x.os}/${x.architecture}`, x.digest]) + .map((x) => [`${x[1].os}/${x[1].architecture}`, x[1].digest]) .sort((a, b) => a[0] - b[0]); return md5(entries.map((x) => x.join(',')).join('|')); }