Skip to content

Commit

Permalink
Revert "UpsertRequest.prototype.loadOrInitializeRecord should return …
Browse files Browse the repository at this point in the history
…a record object"

This reverts commit 368572a.
  • Loading branch information
hayden-t committed Aug 12, 2022
1 parent 6a0a9c2 commit e2da1fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/upsert.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ this.UpsertRequest = (function() {
*/
UpsertRequest.prototype.loadOrInitializeRecord = function() {
if(this.internalid) {
return NetsuiteToolkit.loadRecord(this.record_type, this.internalid);
this.record = NetsuiteToolkit.loadRecord(this.record_type, this.internalid);
} else {
return NetsuiteToolkit.createRecord(this.record_type);
this.record = NetsuiteToolkit.createRecord(this.record_type);
}
}

Expand Down

1 comment on commit e2da1fc

@hayden-t
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly usefull, but not needed by the code or me currently

Please sign in to comment.