feat: add integration tests for deleteRecordById method. fix: add toJSON method on SaveRecordRequest model to handle converting fields map to a POJO before sending in request

This commit is contained in:
StevanFreeborn
2023-02-19 15:53:52 -06:00
parent 818bd0dd19
commit 99c7e7f9f1
6 changed files with 164 additions and 3 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ export class OnspringClient {
: request;
const endpoint = EndpointFactory.getAddOrUpdateRecordEndpoint();
const apiResponse = await this.put<any>(endpoint, request);
const apiResponse = await this.put<any>(endpoint, request.toJSON());
if (apiResponse.isSuccessful === false) {
return apiResponse;