Add update download reason to analytics (#6023)

* Add  download reason to analytics

* mark modpack updates as actual updates in analytics

* fmt
This commit is contained in:
aecsocket
2026-05-07 14:07:20 +01:00
committed by GitHub
parent 56dae8f104
commit e8dc3c3150
10 changed files with 30 additions and 14 deletions

View File

@@ -311,7 +311,7 @@ async function updateProject(mod: ContentItem) {
const profile = await get(props.instance.path).catch(handleError)
if (profile) {
await installVersionDependencies(profile, versionData).catch(handleError)
await installVersionDependencies(profile, versionData, 'update').catch(handleError)
}
}
}
@@ -347,7 +347,7 @@ async function switchProjectVersion(mod: ContentItem, version: Labrinth.Versions
const profile = await get(props.instance.path).catch(handleError)
if (profile) {
await installVersionDependencies(profile, version).catch(handleError)
await installVersionDependencies(profile, version, 'update').catch(handleError)
}
mod.file_path = newPath