Add total-typescript's ts-reset
diff --git a/src/index.ts b/src/index.ts
index 12f6659..ddcd97b 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,3 +1,5 @@
+import "@total-typescript/ts-reset";
+
import runServer from "./api/index.js";
import client from "./utils/client.js";
import config from "./config/main.js";
diff --git a/src/utils/database.ts b/src/utils/database.ts
index c1728c3..a60cf74 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -263,7 +263,7 @@
}
}
if(!data) return null;
- doc = JSON.parse(Buffer.from(data).toString());
+ doc = JSON.parse(Buffer.from(data).toString()) as TranscriptSchema;
}
if(!doc) return null;
return doc;
@@ -294,7 +294,7 @@
}
}
if(!data) return null;
- doc = JSON.parse(Buffer.from(data).toString());
+ doc = JSON.parse(Buffer.from(data).toString()) as TranscriptSchema;
}
if(!doc) return null;
for(const message of doc.messages) {