@dirayaah/assessment-module 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.0",
6
+ "version": "1.0.1",
7
7
  "description": "A reusable module for handling assessments in nestjs applications",
8
8
  "main": "dist/index.js",
9
9
  "type": "commonjs",
@@ -126,7 +126,7 @@ export class AssessmentService {
126
126
 
127
127
  async update(updateAssessmentDto: AssessmentDto, tenantId: string) {
128
128
  const repository = await this.getRepository(tenantId);
129
- const existingAssessment = await repository.findOne(updateAssessmentDto.id);
129
+ const existingAssessment = await repository.findOne({ where: { id: updateAssessmentDto.id } });
130
130
  if (!existingAssessment) {
131
131
  throw new NotFoundException('ASSESSMENT_DOES_NOT_EXIST');
132
132
  }