@@ -50,6 +50,7 @@ export type ProcessToCompletionResult = {
5050
5151export class BulkActionService extends BaseService {
5252 public async create ( input : CreateBulkActionInput ) {
53+ const { organizationId, projectId, environmentId, userId } = input ;
5354 const filters = freezeRunListFilters ( input . filters ) ;
5455
5556 // Region is a replay-only override that re-routes the replayed runs. It's
@@ -61,7 +62,7 @@ export class BulkActionService extends BaseService {
6162 // region surfaces as a user-input (400) error rather than a 500.
6263 const [ regionError ] = await tryCatch (
6364 new WorkerGroupService ( { prisma : this . _prisma } ) . getDefaultWorkerGroupForProject ( {
64- projectId : input . projectId ,
65+ projectId,
6566 regionOverride : replayRegion ,
6667 } )
6768 ) ;
@@ -78,17 +79,17 @@ export class BulkActionService extends BaseService {
7879
7980 // Count the runs that will be affected by the bulk action
8081 const clickhouse = await clickhouseFactory . getClickhouseForOrganization (
81- input . organizationId ,
82+ organizationId ,
8283 "standard"
8384 ) ;
8485 const runsRepository = new RunsRepository ( {
8586 clickhouse,
8687 prisma : this . _replica as PrismaClient ,
8788 } ) ;
8889 const count = await runsRepository . countRuns ( {
89- organizationId : input . organizationId ,
90- projectId : input . projectId ,
91- environmentId : input . environmentId ,
90+ organizationId,
91+ projectId,
92+ environmentId,
9293 ...filters ,
9394 } ) ;
9495
@@ -98,9 +99,9 @@ export class BulkActionService extends BaseService {
9899 data : {
99100 id,
100101 friendlyId,
101- projectId : input . projectId ,
102- environmentId : input . environmentId ,
103- userId : input . userId ,
102+ projectId,
103+ environmentId,
104+ userId,
104105 name : input . title ,
105106 type : input . action === "cancel" ? BulkActionType . CANCEL : BulkActionType . REPLAY ,
106107 params,
0 commit comments