style: run format:apply and cleanup unused imports
This commit is contained in:
+2
-4
@@ -1,8 +1,6 @@
|
||||
import {
|
||||
Attributes,
|
||||
DataTypes,
|
||||
Model,
|
||||
ModelAttributes,
|
||||
ModelStatic,
|
||||
Sequelize
|
||||
} from 'sequelize';
|
||||
@@ -43,7 +41,7 @@ export class DatabaseManager {
|
||||
}
|
||||
|
||||
public async getUser(userId: string) {
|
||||
if (!this.userData) throw new Error("Database not initialized");
|
||||
if (!this.userData) throw new Error('Database not initialized');
|
||||
|
||||
const [user] = await this.userData.findOrCreate({
|
||||
where: { user_id: userId },
|
||||
@@ -53,7 +51,7 @@ export class DatabaseManager {
|
||||
}
|
||||
|
||||
public async getGuild(guildId: string) {
|
||||
if (!this.guildData) throw new Error("Database not initialized");
|
||||
if (!this.guildData) throw new Error('Database not initialized');
|
||||
|
||||
const [guild] = await this.guildData.findOrCreate({
|
||||
where: { guild_id: guildId },
|
||||
|
||||
Reference in New Issue
Block a user