renamed some structs to make the private
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user