mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Prevent Linear unfurl errors from bubbling to error tracking (#12532)
Returning the unfurl promises without awaiting them inside the try
block meant rejections (e.g. "Entity not found: Issue") escaped the
catch and were reported to error tracking. Await them so they are
caught and returned as a handled { error } result.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -148,9 +148,9 @@ export class Linear {
|
|||||||
|
|
||||||
switch (resource.type) {
|
switch (resource.type) {
|
||||||
case UnfurlResourceType.Issue:
|
case UnfurlResourceType.Issue:
|
||||||
return Linear.unfurlIssue(client, resource.id, actor);
|
return await Linear.unfurlIssue(client, resource.id, actor);
|
||||||
case UnfurlResourceType.Project:
|
case UnfurlResourceType.Project:
|
||||||
return Linear.unfurlProject(client, resource.id, actor);
|
return await Linear.unfurlProject(client, resource.id, actor);
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user