Skip to content

Commit

Permalink
fix: πŸ› getMatchings of DatasetRequirementMongoDatastore
Browse files Browse the repository at this point in the history
βœ… Closes: #349
  • Loading branch information
siriusyim authored and lovel8 committed Apr 6, 2024
1 parent f21adc5 commit 30b610f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/dataset/requirement/repo/datastore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class DatasetRequirementMongoDatastore extends DataStore<
}

if (res.data!.length == 0) {
throw new Error("the matchings is none")
return []
}

return res.data![0].matchings!
Expand Down

0 comments on commit 30b610f

Please sign in to comment.