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:
@@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user