Skip to content

Commit 49f7665

Browse files
committed
Update RestWrite.js
1 parent 5e53a48 commit 49f7665

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/RestWrite.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,8 +1665,16 @@ RestWrite.prototype._updateResponseWithData = function (response, data) {
16651665
this.storage.fieldsChangedByTrigger.push(key);
16661666
}
16671667
}
1668+
const defaultMandatoryColumnsInResponse = Object.freeze({
1669+
_User: ['username'],
1670+
});
1671+
const skipKeys = [
1672+
'objectId',
1673+
'createdAt',
1674+
'updatedAt',
1675+
...(defaultMandatoryColumnsInResponse[this.className] || []),
1676+
];
16681677
for (const key in response) {
1669-
const skipKeys = ['objectId', 'createdAt', 'updatedAt', 'username'];
16701678
if (skipKeys.includes(key)) {
16711679
continue;
16721680
}

0 commit comments

Comments
 (0)