aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-10 22:12:23 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-10 22:12:23 -0500
commit9923f0751396decaa6febcaa54da9b6ad9b596b1 (patch)
tree5022a611ae156ff2cd6edb8c124113b539845213 /src/lib/models
parent8928d95b87e036f731c7a65d8646d75f5bb42c93 (diff)
downloadtanzanite-9923f0751396decaa6febcaa54da9b6ad9b596b1.tar.gz
tanzanite-9923f0751396decaa6febcaa54da9b6ad9b596b1.tar.bz2
tanzanite-9923f0751396decaa6febcaa54da9b6ad9b596b1.zip
fixed lots of shit I think
Diffstat (limited to 'src/lib/models')
-rw-r--r--src/lib/models/ActivePunishment.ts2
-rw-r--r--src/lib/models/ModLog.ts1
-rw-r--r--src/lib/models/Stat.ts1
-rw-r--r--src/lib/models/StickyRole.ts1
-rw-r--r--src/lib/models/__helpers.ts1
5 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/models/ActivePunishment.ts b/src/lib/models/ActivePunishment.ts
index 23dd33b..ec1b500 100644
--- a/src/lib/models/ActivePunishment.ts
+++ b/src/lib/models/ActivePunishment.ts
@@ -2,10 +2,8 @@ import { type Snowflake } from 'discord.js';
import { nanoid } from 'nanoid';
import { type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel.js';
-
const { DataTypes } = (await import('sequelize')).default
-
export enum ActivePunishmentType {
BAN = 'BAN',
MUTE = 'MUTE',
diff --git a/src/lib/models/ModLog.ts b/src/lib/models/ModLog.ts
index 757ee66..bb1be8c 100644
--- a/src/lib/models/ModLog.ts
+++ b/src/lib/models/ModLog.ts
@@ -3,7 +3,6 @@ import { nanoid } from 'nanoid';
import { type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel.js';
import { jsonBoolean } from './__helpers.js';
-
const { DataTypes } = (await import('sequelize')).default
export enum ModLogType {
diff --git a/src/lib/models/Stat.ts b/src/lib/models/Stat.ts
index c5f02b8..31111df 100644
--- a/src/lib/models/Stat.ts
+++ b/src/lib/models/Stat.ts
@@ -1,7 +1,6 @@
import { type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel.js';
import { jsonBigint } from './__helpers.js';
-
const { DataTypes } = (await import('sequelize')).default
type Environment = 'production' | 'development' | 'beta';
diff --git a/src/lib/models/StickyRole.ts b/src/lib/models/StickyRole.ts
index a6f604d..63c9726 100644
--- a/src/lib/models/StickyRole.ts
+++ b/src/lib/models/StickyRole.ts
@@ -2,7 +2,6 @@ import { type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel.js';
import { jsonArray } from './__helpers.js';
-
const { DataTypes } = (await import('sequelize')).default
export interface StickyRoleModel {
diff --git a/src/lib/models/__helpers.ts b/src/lib/models/__helpers.ts
index 3b7f4a4..8c98d5b 100644
--- a/src/lib/models/__helpers.ts
+++ b/src/lib/models/__helpers.ts
@@ -2,7 +2,6 @@ import { type Model } from 'sequelize';
const { DataTypes } = (await import('sequelize')).default
-
export function jsonParseGet(this: Model, key: string): any {
return JSON.parse(this.getDataValue(key));
}