Skip to content

Commit 42cb391

Browse files
author
cws
committed
add another test
1 parent 16fc94e commit 42cb391

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

netlifyAPI.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,23 @@ const upload = async () => {
7070
path: key,
7171
buffer: newFileBuf
7272
}]
73-
console.log(uploadList)
73+
//console.log(uploadList)
7474

7575
result = await Promise.all(
7676
uploadList.map(item => uploadFile(item))
7777
)
7878
console.log('Why are all fields capitalized?')
7979
console.log(result)
8080

81+
console.log('.. but other endpoints are *NOT* capitalized?')
82+
let site
83+
try {
84+
site = await client.getSite({ site_id })
85+
} catch (e) {
86+
console.log(e.json)
87+
}
88+
console.log(site)
89+
8190
}
8291

8392
upload()

0 commit comments

Comments
 (0)