@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
|
@@ -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
|
}
|