Fix: remove unnecessary reassignments
This commit is contained in:
@@ -28,10 +28,7 @@ export default function releasePets (user, req = {}, analytics) {
|
||||
if (!user.items.pets[pet]) {
|
||||
giveBeastMasterAchievement = false;
|
||||
}
|
||||
user.items.pets = {
|
||||
...user.items.pets,
|
||||
[pet]: 0,
|
||||
};
|
||||
user.items.pets[pet] = 0;
|
||||
}
|
||||
|
||||
if (user.markModified) user.markModified('items.pets');
|
||||
|
||||
Reference in New Issue
Block a user