Minor improvements to Strapi-Node

This commit is contained in:
Jan Oberhauser
2020-11-11 09:45:50 +01:00
parent a5ecf3d58d
commit 73e1399c42
4 changed files with 18 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ import {
export async function strapiApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions, method: string, resource: string, body: any = {}, qs: IDataObject = {}, uri?: string, headers: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
const credentials = this.getCredentials('strapiApi') as IDataObject;
try {
const options: OptionsWithUri = {
headers: {