11import {
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" ;
99import {
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" ;
1818import assertNever from "assert-never" ;
1919import { subtle } from "crypto" ;
20- import { Prisma , prisma , PrismaClientOrTransaction } from "~/db.server" ;
20+ import { type Prisma , type prisma , type PrismaClientOrTransaction } from "~/db.server" ;
2121import { env } from "~/env.server" ;
2222import {
2323 OrgIntegrationRepository ,
24- OrganizationIntegrationForService ,
24+ type OrganizationIntegrationForService ,
2525} from "~/models/orgIntegration.server" ;
2626import {
2727 ProjectAlertEmailProperties ,
@@ -37,7 +37,7 @@ import { commonWorker } from "~/v3/commonWorker.server";
3737import { FINAL_ATTEMPT_STATUSES } from "~/v3/taskStatus" ;
3838import { BaseService } from "../baseService.server" ;
3939import { generateFriendlyId } from "~/v3/friendlyIdentifiers" ;
40- import { ProjectAlertChannelType , ProjectAlertType } from "@trigger.dev/database" ;
40+ import { type ProjectAlertChannelType , type ProjectAlertType } from "@trigger.dev/database" ;
4141import { alertsRateLimiter } from "~/v3/alertsRateLimiter.server" ;
4242import { v3RunPath } from "~/utils/pathBuilder" ;
4343import { 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