upadet get badges callback

it use to be an array, now its an object.