mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Fixed type errors
This commit is contained in:
parent
698c30313f
commit
afbd7a337e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue