fix(core): update

This commit is contained in:
2019-09-01 13:17:21 +02:00
parent 51219303a9
commit db474ebd8a
2 changed files with 34 additions and 5 deletions

View File

@ -14,13 +14,12 @@ export class TypedRequest<T extends plugins.typedRequestInterfaces.ITypedRequest
* firest the request
*/
public async fire(fireArg: T['request']): Promise<T['response']> {
const response = await plugins.smartrequest.request(this.urlEndPoint, {
method: 'POST',
requestBody: JSON.stringify({
const response = await plugins.smartrequest.postJson(this.urlEndPoint, {
requestBody: {
method: this.method,
request: fireArg,
response: null
})
}
});
return response.body.response;
}