Skip to content

Commit

Permalink
Add comment to second branch
Browse files Browse the repository at this point in the history
  • Loading branch information
amccarthy1 committed May 9, 2022
1 parent effc735 commit fef78e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ class Entity<
names[`#${attr}`] = attr
} // end for
} else if (this._table!._removeNulls === true && (data[field] === null || String(data[field]).trim() === '') && (!mapping.link || mapping.save)) {
// Verify attribute is not required
if (schema.attributes[field].required)
error(`'${field}' is required and cannot be removed`);
REMOVE.push(`#${field}`)
Expand Down

0 comments on commit fef78e6

Please sign in to comment.