1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-06 11:27:54 -05:00

v0.5.7 - Sonar Cleanup + New Activities

This commit is contained in:
Ean Milligan (Bastion)
2022-08-27 02:31:23 -04:00
parent 5f4c3b10b1
commit 04ebce7d01
7 changed files with 11 additions and 8 deletions

View File

@ -19,8 +19,8 @@ const dbClient = await new Client().connect({
console.log('Attempting to insert default commands into command_cnt');
const commands = ['ping', 'help', 'info', 'version', 'report', 'privacy', 'lfg', 'prefix'];
for (let i = 0; i < commands.length; i++) {
await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [commands[i]]).catch((e) => {
for (const command of commands) {
await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [command]).catch((e) => {
console.log(`Failed to insert into database`, e);
});
}