Skip to content

Commit a3d42ec

Browse files
committed
v2.7.2
adimages fix (node 4 compatible)
1 parent 2b36572 commit a3d42ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "facebook-ads-sdk",
3-
"version": "2.7.1",
3+
"version": "2.7.2",
44
"description": "SDK for the Facebook Ads API in Javascript and Node.js",
55
"author": "Lucas Costa (https://github.com/lucascosta)",
66
"maintainers": [

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class AbstractCrudObject extends AbstractObject {
206206
return new Promise((resolve, reject) => {
207207
api.call('POST', path, params)
208208
.then((data) => {
209-
if (path.includes('adimages')) {
209+
if (path.indexOf('adimages') > -1) {
210210
data = data.images[params.name]
211211
}
212212
resolve(this.setData(data))

0 commit comments

Comments
 (0)