aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers/utils.ts')
-rw-r--r--apps/workers/utils.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/workers/utils.ts b/apps/workers/utils.ts
index 2372684e..8d297e05 100644
--- a/apps/workers/utils.ts
+++ b/apps/workers/utils.ts
@@ -36,12 +36,3 @@ export async function readPDFText(buffer: Buffer): Promise<{
pdfParser.parseBuffer(buffer);
});
}
-
-export function truncateContent(content: string, length = 1500) {
- let words = content.split(" ");
- if (words.length > length) {
- words = words.slice(0, length);
- content = words.join(" ");
- }
- return content;
-}