From 7a87d90b79272efc7251e83881de20c7c97d52f4 Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Tue, 8 Oct 2024 18:40:02 +0200 Subject: [PATCH] chore(sync): remove non necessary variable --- src/services/profile-synchronizer.service.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/services/profile-synchronizer.service.ts b/src/services/profile-synchronizer.service.ts index 355f317..6b347c5 100644 --- a/src/services/profile-synchronizer.service.ts +++ b/src/services/profile-synchronizer.service.ts @@ -160,15 +160,12 @@ export const profileSynchronizerService = async ( // Update profile images hash await updateCacheEntry( "profile", - Object.entries(profileUpdate).reduce( - (updated, [type, { hash, ..._rest }]) => { - return { - ...updated, - [type]: hash, - }; - }, - {} as ProfileCache, - ), + Object.entries(profileUpdate).reduce((updated, [type, { hash }]) => { + return { + ...updated, + [type]: hash, + }; + }, {} as ProfileCache), ); log.succeed("task finished");