mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-22 14:43:29 +08:00
Fixed primary group setting not working
This commit is contained in:
@@ -101,10 +101,10 @@ SteamCommunity.prototype.editProfile = function(settings, callback) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'primaryGroup':
|
case 'primaryGroup':
|
||||||
if(typeof settings[i] === 'object' && settings[i].accountid) {
|
if(typeof settings[i] === 'object' && settings[i].getSteamID64) {
|
||||||
values.primary_group_steamid = settings[i].accountid;
|
values.primary_group_steamid = settings[i].getSteamID64();
|
||||||
} else {
|
} else {
|
||||||
values.primary_group_steamid = new SteamID(settings[i]).accountid;
|
values.primary_group_steamid = new SteamID(settings[i]).getSteamID64();
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user