Make @davidjcralph happy

const
This commit is contained in:
Isaac
2021-05-18 18:12:07 +01:00
parent 37adac1dd0
commit 8a15f34342
31 changed files with 176 additions and 167 deletions

View File

@@ -14,7 +14,7 @@ module.exports = async (client) => {
DB_NAME
} = process.env;
let type = (DB_TYPE || 'sqlite').toLowerCase();
const type = (DB_TYPE || 'sqlite').toLowerCase();
const supported = Object.keys(types);
if (!supported.includes(type)) {
@@ -25,7 +25,7 @@ module.exports = async (client) => {
try {
types[type].packages.forEach(pkg => require(pkg));
} catch {
let required = types[type].packages.map(i => `"${i}"`).join(' and ');
const required = types[type].packages.map(i => `"${i}"`).join(' and ');
client.log.error(new Error(`Please install the package(s) for your selected database type: ${required}`));
return process.exit();
}

View File

@@ -39,6 +39,10 @@ module.exports = ({ config }, sequelize) => {
type: DataTypes.STRING,
defaultValue: 'GREEN'
},
tags: {
type: DataTypes.JSON,
defaultValue: {}
}
}, {
tableName: DB_TABLE_PREFIX + 'guilds'
});