Skip to content

Commit

Permalink
fix: Data retrival for valid data (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Dec 26, 2023
2 parents 02c9290 + 550720e commit 891df5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dal/src/dal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class DalService {
const model = this.getRecordCollection(_uploadId);

if (!model) return [];
const conditions = type === 'all' ? {} : type === 'invalid' ? { isValid: false } : { isValid: { $exists: false } };
const conditions = type === 'all' ? {} : { isValid: type === 'valid' };

return model
.find(conditions, 'index isValid errors record updated')
Expand Down

0 comments on commit 891df5f

Please sign in to comment.