🩹 fix api config
This commit is contained in:
parent
c6fd07feae
commit
6a85d20a03
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ module.exports = async (client) => {
|
|||
optionType: DBD.formTypes.input('https://bg.zyner.org/api/'),
|
||||
getActualSet: async ({ guild, user }) => {
|
||||
const api = await apis.findOne({ guildId: guild.id });
|
||||
return api.url || null;
|
||||
return api ? api.url : null;
|
||||
},
|
||||
setNew: async ({ guild, newData }) => {
|
||||
const api = await apis.findOne({ guildId: guild.id });
|
||||
|
@ -237,7 +237,7 @@ module.exports = async (client) => {
|
|||
optionType: DBD.formTypes.input('1'),
|
||||
getActualSet: async ({ guild, user }) => {
|
||||
const api = await apis.findOne({ guildId: guild.id });
|
||||
return api.token || null;
|
||||
return api.token ? api.token : null;
|
||||
},
|
||||
setNew: async ({ guild, newData }) => {
|
||||
const api = await apis.findOne({ guildId: guild.id });
|
||||
|
|
Loading…
Add table
Reference in a new issue