aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/__helpers.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-01 15:40:31 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-01 15:40:31 -0400
commit13894f2beffc776a56ac03868613b4313dfb57bf (patch)
tree028c229b42c2a74a3c511386f594385d3ed77dd5 /src/lib/models/__helpers.ts
parent914c4d3cb7f02a0c74b677e67a47fb66a65fb724 (diff)
downloadtanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.gz
tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.bz2
tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.zip
convert to esm
Diffstat (limited to 'src/lib/models/__helpers.ts')
-rw-r--r--src/lib/models/__helpers.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/models/__helpers.ts b/src/lib/models/__helpers.ts
index 3a958b9..3b7f4a4 100644
--- a/src/lib/models/__helpers.ts
+++ b/src/lib/models/__helpers.ts
@@ -1,4 +1,7 @@
-import { DataTypes, type Model } from 'sequelize';
+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));