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

Asset Component seems to be broken #37

@WesselBBD

Description

@WesselBBD

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);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions