Skip to content

Commit

Permalink
Fix settings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Dec 15, 2023
1 parent 1805d9b commit 9a6c837
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/discord-bot/src/utils/settingsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ export const getSetting = async (
headers: host ? { host: host } : {},
})
.then((res) => {
logger.debug(res.data);
return res.data[0].valueRealized
? res.data[0].valueRealized
: getDefaultSetting(key);
return res.data[0].valueRealized;
})
.catch((err) => {
logger.error(
Expand Down

0 comments on commit 9a6c837

Please sign in to comment.