fix(route): douckerhub/build guid is always the same (#9114)

This commit is contained in:
Fatpandac 2022-02-16 19:41:50 +08:00 committed by GitHub
parent c55d98be6c
commit 8da423f929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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('|'));
}