@@ -46,7 +46,6 @@ import {
46
46
EngagementRepository ,
47
47
LanguageOrEngagementId ,
48
48
} from './engagement.repository' ;
49
- //import { EngagementRules } from './engagement.rules';
50
49
import {
51
50
EngagementCreatedEvent ,
52
51
EngagementUpdatedEvent ,
@@ -63,7 +62,6 @@ export class EngagementService {
63
62
private readonly products : ProductService & { } ,
64
63
private readonly config : ConfigService ,
65
64
private readonly files : FileService ,
66
- //private readonly engagementRules: EngagementRules,
67
65
private readonly engagementWorkflow : EngagementWorkflowService ,
68
66
private readonly privileges : Privileges ,
69
67
@Inject ( forwardRef ( ( ) => ProjectService ) )
@@ -265,14 +263,6 @@ export class EngagementService {
265
263
await this . verifyFirstScripture ( { engagementId : input . id } ) ;
266
264
}
267
265
268
- // if (input.status) {
269
- // await this.engagementWorkflow.verifyStatusChange(
270
- // input.id,
271
- // session,
272
- // input.status,
273
- // );
274
- // }
275
-
276
266
const previous = await this . repo . readOne ( input . id , session , view ) ;
277
267
const object = ( await this . secure ( previous , session ) ) as LanguageEngagement ;
278
268
@@ -317,14 +307,6 @@ export class EngagementService {
317
307
changeset ?: ID ,
318
308
) : Promise < InternshipEngagement > {
319
309
const view : ObjectView = viewOfChangeset ( changeset ) ;
320
- // if (input.status) {
321
- // await this.engagementWorkflow.verifyStatusChange(
322
- // input.id,
323
- // session,
324
- // input.status,
325
- // changeset,
326
- // );
327
- // }
328
310
329
311
const previous = await this . repo . readOne ( input . id , session , view ) ;
330
312
const object = ( await this . secure (
0 commit comments