mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
fix(route): douckerhub/build guid is always the same (#9114)
This commit is contained in:
@@ -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('|'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user