Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Jun 29, 2022
1 parent 1bfa0c3 commit ce49fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datasources/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class ItemsAPI extends WorkerKV {
async getTopCategory(id) {
await this.init();
const cat = await this.getCategory(id);
if (cat.parent_id) return this.getTopCategory(cat.parent_id);
if (cat && cat.parent_id) return this.getTopCategory(cat.parent_id);
return cat;
}

Expand Down
2 changes: 1 addition & 1 deletion schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ type Item {
buyFor: [ItemPrice!]
containsItems: [ContainedItem]
category: ItemCategory
categoryTop: ItemCategory.
categoryTop: ItemCategory
bsgCategoryId: String
weight: Float
velocity: Float
Expand Down

0 comments on commit ce49fec

Please sign in to comment.