Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Actually fetch assets data in query #287

Merged
merged 9 commits into from Feb 22, 2017

Conversation

b123400
Copy link
Contributor

@b123400 b123400 commented Feb 11, 2017

connect SkygearIO/skygear-SDK-JS#164

The original code does not query assets at all, feels like intentionally leaving some fields blank to save a query, so this PR is not really fixing bug, but adding functionality.

@@ -45,6 +46,42 @@ func (c *conn) GetAsset(name string, asset *skydb.Asset) error {
return err
}

func (c *conn) GetAssets(names []string) ([]skydb.Asset, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to change GetAsset to use GetAssets to reduce code duplication.

@rickmak
Copy link
Member

rickmak commented Feb 21, 2017

ping @b123400 ?

@b123400
Copy link
Contributor Author

b123400 commented Feb 21, 2017

Updated

@rickmak rickmak merged commit 0a4decf into SkygearIO:master Feb 22, 2017
@rickmak rickmak removed the In Review label Feb 22, 2017
rickmak added a commit to rickmak/skygear-server that referenced this pull request Mar 28, 2017
cheungpat added a commit that referenced this pull request Mar 29, 2017
This is required to maintain backward compatibility
with old SDK clients which may not send content
type in the record JSON format when communicating
with the server.

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

Successfully merging this pull request may close these issues.

None yet

4 participants