Webpack build for branch master: 234648bd2a

This commit is contained in:
Travis CI 2018-02-02 17:47:22 +00:00
parent 9c2df4a80b
commit 3b7ab63bb6
2 changed files with 7 additions and 8 deletions

View file

@ -8625,13 +8625,12 @@ class ClientApplication extends Base {
* @param {string} type Type of the asset. `big`, or `small`
* @returns {Promise}
*/
createAsset(name, data, type) {
return DataResolver.resolveBase64(data).then(b64 =>
this.client.api.oauth2.applications(this.id).assets.post({ data: {
name,
data: b64,
type: ClientApplicationAssetTypes[type.toUpperCase()],
} }));
async createAsset(name, data, type) {
return this.client.api.oauth2.applications(this.id).assets.post({ data: {
name,
type: ClientApplicationAssetTypes[type.toUpperCase()],
image: await DataResolver.resolveImage(data),
} });
}
/**

File diff suppressed because one or more lines are too long