Fixed type errors

This commit is contained in:
Esmodea 2025-09-18 16:05:08 -05:00
parent 698c30313f
commit afbd7a337e
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ export function arrayBufferToBase64(buffer: ArrayBuffer): string {
}
export function base64ToArrayBuffer(base64: string): ArrayBuffer {
return Buffer.from(base64, "base64");
return Buffer.from(base64, "base64").buffer;
}
// Mock Event reference

View file

@ -261,7 +261,7 @@ export default class SyncManager {
}
const normalizedPath = normalizePath(targetPath);
await this.vault.adapter.writeBinary(normalizedPath, data);
await this.vault.adapter.writeBinary(normalizedPath, data.buffer);
await this.logger.info("Written file", {
normalizedPath,
});