Skip to content

Server returning Response Promise instead of JSON #159

@ciennG

Description

@ciennG

Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success callback has to take its argument, call .json() on it, and call .then() on the result to do what it wants.

This should be a relatively simple thing to change (just do the same work in the get functions of Server), but working code assumes it works in this way.

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