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
+8
View File
@@ -25,4 +25,12 @@ export class SaveRecordRequest {
this.recordId = recordId;
this.fields = fields;
}
public toJSON(): any {
return {
appId: this.appId,
recordId: this.recordId,
fields: Object.fromEntries(this.fields),
};
}
}