replace usage of _.extend with Object.assign

This commit is contained in:
Girish Ramakrishnan
2023-05-25 11:27:23 +02:00
parent 79dd50910c
commit e6ba2a6e7a
15 changed files with 62 additions and 71 deletions

View File

@@ -624,7 +624,7 @@ async function update(user, data, auditSource) {
if (error) throw new BoxError(BoxError.DATABASE_ERROR, error);
if (result.affectedRows !== 1) throw new BoxError(BoxError.NOT_FOUND, 'User not found');
const newUser = _.extend({}, user, data);
const newUser = Object.assign({}, user, data);
await eventlog.add(eventlog.ACTION_USER_UPDATE, auditSource, {
userId: user.id,