feat: added save record request model with tests

This commit is contained in:
StevanFreeborn
2023-02-12 22:14:55 -06:00
parent 71ef5ffb07
commit 78f9be32e9
5 changed files with 99 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export class Record {
* @param {RecordValue[]} fieldData - The data for the fields in the record.
* @returns {Record} - A new instance of Record.
*/
constructor(appId: number, recordId: number, fieldData: RecordValue[]) {
constructor(appId: number, recordId: number, fieldData: RecordValue[] = []) {
this.appId = appId;
this.recordId = recordId;
this.fieldData = fieldData;