We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b36572 commit a3d42ecCopy full SHA for a3d42ec
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "facebook-ads-sdk",
3
- "version": "2.7.1",
+ "version": "2.7.2",
4
"description": "SDK for the Facebook Ads API in Javascript and Node.js",
5
"author": "Lucas Costa (https://github.com/lucascosta)",
6
"maintainers": [
src/core.js
@@ -206,7 +206,7 @@ export class AbstractCrudObject extends AbstractObject {
206
return new Promise((resolve, reject) => {
207
api.call('POST', path, params)
208
.then((data) => {
209
- if (path.includes('adimages')) {
+ if (path.indexOf('adimages') > -1) {
210
data = data.images[params.name]
211
}
212
resolve(this.setData(data))
0 commit comments