fix: Allow images with same sha512 when modelId differs (#1223)

This commit is contained in:
Koen Kanters
2026-07-06 20:30:23 +02:00
committed by GitHub
parent 248826c725
commit d514a589ec
2 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ export function hasManufacturerImage(list: RepoImageMeta[], image: RepoImageMeta
return list.some(
(i) =>
path.posix.dirname(i.url) === imageBasePath &&
(i.sha512 === image.sha512 ||
((i.sha512 === image.sha512 && !(i.modelId && image.modelId && i.modelId !== image.modelId)) ||
(i.fileVersion === image.fileVersion &&
i.imageType === image.imageType &&
i.manufacturerCode === image.manufacturerCode &&