From dac1a480967c19ebee2e64ae19a82fb41386297b Mon Sep 17 00:00:00 2001 From: Aditya Choudhari Date: Wed, 25 Dec 2024 23:53:42 -0500 Subject: [PATCH] fix --- .../job-dispatch/src/environment-release-channel-update.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/job-dispatch/src/environment-release-channel-update.ts b/packages/job-dispatch/src/environment-release-channel-update.ts index e53c5172..c82ae04a 100644 --- a/packages/job-dispatch/src/environment-release-channel-update.ts +++ b/packages/job-dispatch/src/environment-release-channel-update.ts @@ -198,10 +198,7 @@ const getPolicyReleaseChannels = (environmentId: string) => ) .where(eq(SCHEMA.environment.id, environmentId)) .then((rows) => - _.mapValues( - _.keyBy(rows, (r) => r.deploymentId), - (r) => r.channelId, - ), + Object.fromEntries(rows.map((r) => [r.deploymentId, r.channelId])), ); export const handleEnvironmentReleaseChannelUpdate = async (