From 866eea1dcf3e8a7c9161db5f013493c63e47e48c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 30 Apr 2025 07:55:23 -0400 Subject: [PATCH] tsc --- plugins/linear/server/api/linear.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/linear/server/api/linear.ts b/plugins/linear/server/api/linear.ts index 806afb9a2f..2c271aa746 100644 --- a/plugins/linear/server/api/linear.ts +++ b/plugins/linear/server/api/linear.ts @@ -77,14 +77,14 @@ router.get( { transaction } ); - if (workspace.logoUrl) { - transaction.afterCommit(async () => { + transaction.afterCommit(async () => { + if (workspace.logoUrl) { await new UploadLinearWorkspaceLogoTask().schedule({ integrationId: integration.id, logoUrl: workspace.logoUrl, }); - }); - } + } + }); ctx.redirect(LinearUtils.successUrl()); }