Browse Source

don't use undefined when your db returns null

master
monty 2 years ago
parent
commit
a965dd70e2
  1. 2
      utils/src/database.js

2
utils/src/database.js

@ -27,7 +27,7 @@ module.exports = {
defaults: DatabaseDefaults,
setupServer: async function(ctx) {
ctx.utils.log.servers.setup(ctx.guild);
if (Servers.get(ctx.guild.id) === undefined) {
if (Servers.get(ctx.guild.id) === null) {
await Servers.set(ctx.guild.id, DatabaseDefaults.server);
}
ctx.utils.log.servers.fin(ctx.guild);

Loading…
Cancel
Save