Skip to content

Commit

Permalink
Merge d7d1d5c into 03f1f91
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jun 29, 2020
2 parents 03f1f91 + d7d1d5c commit 73525a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/controllers/SdtdServer/available-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ module.exports = {
itemToSearch: inputs.item
}).exec({
success: (response) => {
if (!response) {
return exits.success(false)
}
return exits.success(response);
},
unknownCommand: (error) => {
Expand Down
3 changes: 3 additions & 0 deletions api/helpers/sdtd/validate-item-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ module.exports = {
itemToSearch: inputs.item
}).exec({
success: (response) => {
if (!response) {
return exits.success(false)
}
let foundItem = false

response.map(itemName => {
Expand Down

0 comments on commit 73525a0

Please sign in to comment.