Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 593ec1d

Browse files
committed
Fixed another problem with getting quality id by name
1 parent 9f7b12d commit 593ec1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Schema {
7676
*/
7777
getQualityIdByName (name) {
7878
for (const type in this.raw.schema.qualityNames) {
79-
if (!Object.prototype.hasOwnProperty.call(this.raw.schema.qualityNames, name)) {
79+
if (!Object.prototype.hasOwnProperty.call(this.raw.schema.qualityNames, type)) {
8080
continue;
8181
}
8282

0 commit comments

Comments
 (0)