renamed some structs to make the private

This commit is contained in:
2025-11-20 15:44:28 +01:00
parent 34f55eccf0
commit 0e47fb6983
5 changed files with 15 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ func Run(config Config) {
for _, filepath := range files {
idx := slices.IndexFunc(localState.Assets, func(e AssetState) bool { return e.FilePath == filepath })
idx := slices.IndexFunc(localState.Assets, func(e assetState) bool { return e.FilePath == filepath })
if idx != -1 {
log.Printf("Asset already uploaded: %s", filepath)
@@ -59,7 +59,7 @@ func Run(config Config) {
log.Printf("Assest uploaded: %s (%s) %s with ID: %s", gameName, appid, filepath, res.ID)
localState.Assets = append(localState.Assets, AssetState{FilePath: filepath, ImmichID: res.ID})
localState.Assets = append(localState.Assets, assetState{FilePath: filepath, ImmichID: res.ID})
assetsInGame = append(assetsInGame, res.ID)
}