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