mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
fix: Store Linear workspace logo only when it's available
This commit is contained in:
1 parent
6440d78b6f
commit
5d52475acb
1 file changed
+7
-5
@@ -106,12 +106,14 @@ router.get(
|
||||
{ transaction }
|
||||
);
|
||||
|
||||
transaction.afterCommit(async () => {
|
||||
await UploadLinearWorkspaceLogoTask.schedule({
|
||||
integrationId: integration.id,
|
||||
logoUrl: workspace.logoUrl,
|
||||
if (workspace.logoUrl) {
|
||||
transaction.afterCommit(async () => {
|
||||
await UploadLinearWorkspaceLogoTask.schedule({
|
||||
integrationId: integration.id,
|
||||
logoUrl: workspace.logoUrl,
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
ctx.redirect(LinearUtils.successUrl());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user