Refactor landing.js: Update modIdentity assignment in dlAsync function

This commit is contained in:
Sandro642 2024-10-27 11:47:23 +01:00
parent 07ed316f9f
commit 7f33a1d2fa

View File

@ -499,7 +499,7 @@ async function dlAsync(login = true) {
mdls.forEach(mdl => {
if (mdl.rawModule.name.endsWith('.jar')) {
const modPath = path.join(modsDir, mdl.rawModule.name)
const modIdentity = mdl.rawModule || mdl.rawModule.artifact.MD5
const modIdentity = mdl.rawModule.identity || mdl.rawModule.artifact.MD5
if (extraFileVerif.debug) {
loggerLanding.info(Lang.queryJS('landing.dlAsync.extraFileVerif.distributionIdentityError', {
'moduleName': mdl.rawModule.name,