Skip to content

Commit

Permalink
restore method required for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cofiem committed Dec 4, 2024
1 parent c3acabc commit d1433e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions typescript/api/services/RecordsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export module Services {
'exportAllPlans',
'storeRecordAudit',
'exists',
'transitionWorkflowStep',
'setWorkflowStepRelatedMetadata',
'transitionWorkflowStepMetadata',
'triggerPreSaveTransitionWorkflowTriggers',
Expand Down Expand Up @@ -955,6 +956,10 @@ export module Services {
return await this.storageService.createRecordAudit(record);
}

public async transitionWorkflowStep(currentRec: any, recordType: any, nextStep: any, user: any, triggerPreSaveTriggers: boolean = true, triggerPostSaveTriggers: boolean = true) {
throw new Error("Use separate calls to 'transitionWorkflowStepMetadata', 'triggerPreSaveTransitionWorkflowTriggers', and 'triggerPostSaveTransitionWorkflowTriggers' instead.")

Check warning on line 960 in typescript/api/services/RecordsService.ts

View check run for this annotation

Codecov / codecov/patch

typescript/api/services/RecordsService.ts#L960

Added line #L960 was not covered by tests
}

public setWorkflowStepRelatedMetadata(currentRec: any, nextStep: any) {
sails.log.warn('Deprecated call to setWorkflowStepRelatedMetadata. Use transitionWorkflowStepMetadata instead.');
return this.transitionWorkflowStepMetadata(currentRec, nextStep);
Expand Down

0 comments on commit d1433e9

Please sign in to comment.