Add total-typescript's ts-reset
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) {