Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Asset Component seems to be broken #37

Open
WesselBBD opened this issue Feb 17, 2022 · 0 comments
Open

Asset Component seems to be broken #37

WesselBBD opened this issue Feb 17, 2022 · 0 comments

Comments

@WesselBBD
Copy link

Almost every method from the Assets component is currently broken because the CH API is returning a different structured JSON, and the "helper functions" are not helping.

Most of these fixes involve removing the outdated SON attribute.

/api.json no longer comes in this format. It just sends the entire array now. The .list attribute should be removed.

Asset.prototype._list_types_cb = function(cb, err, result) {
if (err) return cb(err, result);
cb(null, result.list);
};

api/asset.json still returns the same JSON so this is all good

cb(null, result.attributes);

api/search now just returns the array with everything in. The .list attribute can be removed.

Asset.prototype._query_cb = function(match, cb, err, result) {
if (err) return cb(err, result);
cb(null, result.list);
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant