Minor improvements to Paddle-Node

This commit is contained in:
Jan Oberhauser
2020-08-25 10:51:16 +02:00
parent 72102faed5
commit 5def03855b
7 changed files with 106 additions and 114 deletions

View File

@@ -21,12 +21,12 @@ export async function paddleApiRequest(this: IHookFunctions | IExecuteFunctions
throw new Error('Could not retrieve credentials!');
}
const options : OptionsWithUri = {
const options: OptionsWithUri = {
method,
headers: {
'content-type': 'application/json'
},
uri: `https://vendors.paddle.com/api${endpoint}` ,
uri: `https://vendors.paddle.com/api${endpoint}`,
body,
json: true
};