Skip to content

Commit a0b7179

Browse files
committed
Fix for alert webhook path
1 parent 1a0e99d commit a0b7179

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

apps/webapp/app/v3/services/alerts/deliverAlert.server.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
import {
2-
ChatPostMessageArguments,
2+
type ChatPostMessageArguments,
33
ErrorCode,
4-
WebAPIHTTPError,
5-
WebAPIPlatformError,
6-
WebAPIRateLimitedError,
7-
WebAPIRequestError,
4+
type WebAPIHTTPError,
5+
type WebAPIPlatformError,
6+
type WebAPIRateLimitedError,
7+
type WebAPIRequestError,
88
} from "@slack/web-api";
99
import {
1010
Webhook,
1111
TaskRunError,
1212
createJsonErrorObject,
13-
RunFailedWebhook,
14-
DeploymentFailedWebhook,
15-
DeploymentSuccessWebhook,
13+
type RunFailedWebhook,
14+
type DeploymentFailedWebhook,
15+
type DeploymentSuccessWebhook,
1616
isOOMRunError,
1717
} from "@trigger.dev/core/v3";
1818
import assertNever from "assert-never";
1919
import { subtle } from "crypto";
20-
import { Prisma, prisma, PrismaClientOrTransaction } from "~/db.server";
20+
import { type Prisma, type prisma, type PrismaClientOrTransaction } from "~/db.server";
2121
import { env } from "~/env.server";
2222
import {
2323
OrgIntegrationRepository,
24-
OrganizationIntegrationForService,
24+
type OrganizationIntegrationForService,
2525
} from "~/models/orgIntegration.server";
2626
import {
2727
ProjectAlertEmailProperties,
@@ -37,7 +37,7 @@ import { commonWorker } from "~/v3/commonWorker.server";
3737
import { FINAL_ATTEMPT_STATUSES } from "~/v3/taskStatus";
3838
import { BaseService } from "../baseService.server";
3939
import { generateFriendlyId } from "~/v3/friendlyIdentifiers";
40-
import { ProjectAlertChannelType, ProjectAlertType } from "@trigger.dev/database";
40+
import { type ProjectAlertChannelType, type ProjectAlertType } from "@trigger.dev/database";
4141
import { alertsRateLimiter } from "~/v3/alertsRateLimiter.server";
4242
import { v3RunPath } from "~/utils/pathBuilder";
4343
import { ApiRetrieveRunPresenter } from "~/presenters/v3/ApiRetrieveRunPresenter.server";
@@ -380,6 +380,7 @@ export class DeliverAlertService extends BaseService {
380380
dashboardUrl: `${env.APP_ORIGIN}${v3RunPath(
381381
alert.project.organization,
382382
alert.project,
383+
alert.environment,
383384
alert.taskRun
384385
)}`,
385386
},

0 commit comments

Comments
 (0)