Skip to content

publish npm package #42

Closed
Abdallah-khalil wants to merge 3 commits intopublish-npmfrom
main
Closed

publish npm package #42
Abdallah-khalil wants to merge 3 commits intopublish-npmfrom
main

Conversation

@Abdallah-khalil
Copy link
Contributor

No description provided.

Abdallah-khalil added a commit that referenced this pull request Jul 14, 2025
…ory pattern

- Replaced all direct Prisma calls with IProgressCalculationRepository methods
- Updated constructor to inject IProgressCalculationRepository instead of PrismaService
- Migrated getTaskBasicInfo() to use repository.findTaskBasicInfo()
- Migrated getRoleSteps() to use repository.findRoleWithSteps()
- Migrated getStepProgress() to use repository.findStepProgressByTaskId()
- All method signatures and return types preserved
- Error handling patterns maintained
- Repository properly registered in workflow-rules.module.ts
- Fixed type safety issues with stepProgress handling

Repository methods in use:
- progressCalculationRepository.findTaskBasicInfo() for task data
- progressCalculationRepository.findRoleWithSteps() for role steps
- progressCalculationRepository.findStepProgressByTaskId() for step progress

Fixes #42 - Progress calculator service repository pattern migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant