Skip to content

Commit

Permalink
Fixed bun text
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Feb 16, 2024
1 parent 4f46712 commit e5393f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/enrich/typesense-plaintext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'path';
import { Enrichment } from '../util/enrich';
import { existsSync } from 'fs';
import { readdir } from 'fs/promises';
import { readFile, readdir } from 'fs/promises';

const plaintextSchema = {
name: 'manifest-plaintext',
Expand Down Expand Up @@ -45,7 +45,7 @@ export const typesensePlaintext: Enrichment = {

pages.push({
id: btoa(resource.id + canvasIndex),
plaintext: await Bun.file(join(plaintextPath, file)).text(),
plaintext: await readFile(join(plaintextPath, file), 'utf-8'),
manifest: resource.id,
canvasIndex,
});
Expand Down

0 comments on commit e5393f6

Please sign in to comment.