fixed not handling steam error, updated steamapi dep

This commit is contained in:
2021-10-19 03:51:07 +02:00
parent 3520ed54cc
commit da7d240707
3 changed files with 10 additions and 4 deletions

View File

@@ -65,7 +65,12 @@ func housekeeping() {
continue
}
_, err = utils.UpdatePlayerFromSteam(tPlayerNeedSteamUpdate, db.Client, conf.Steam.APIKey, db.Lock, rL)
if len(tPlayerNeedSteamUpdate) > 0 {
_, err = utils.UpdatePlayerFromSteam(tPlayerNeedSteamUpdate, db.Client, conf.Steam.APIKey, db.Lock, rL)
if err != nil {
log.Warningf("[HK] Unable to update profiles from steam: %v", err)
}
}
// getting new sharecodes
if !demoLoader.GCReady {