fix: correct fs.readFile call in cortexSense for universal adapter compatibility
- Remove encoding parameter from fs.readFile (universal adapter handles this) - Build now completes successfully - TypeScript compilation errors resolved
This commit is contained in:
parent
93804be354
commit
a5cd631c29
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ export class CortexSenseAugmentation implements ISenseAugmentation {
|
|||
const watcher = fsWatch.watch(filePath, async (eventType: string) => {
|
||||
if (eventType === 'change') {
|
||||
try {
|
||||
const fileContent = await fs.readFile(filePath, 'utf8')
|
||||
const fileContent = await fs.readFile(filePath)
|
||||
const result = await this.processRawData(fileContent, this.getDataTypeFromPath(filePath))
|
||||
|
||||
if (result.success) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue