mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
Make @davidjcralph happy
const
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -39,6 +39,10 @@ module.exports = ({ config }, sequelize) => {
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: 'GREEN'
|
||||
},
|
||||
tags: {
|
||||
type: DataTypes.JSON,
|
||||
defaultValue: {}
|
||||
}
|
||||
}, {
|
||||
tableName: DB_TABLE_PREFIX + 'guilds'
|
||||
});
|
||||
|
Reference in New Issue
Block a user