This commit is contained in:
Andras Schmelczer 2025-01-08 22:55:27 +00:00
parent 5582691cf7
commit d8098740b3
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@ export interface FileOperations {
read: (path: RelativePath) => Promise<Uint8Array>; read: (path: RelativePath) => Promise<Uint8Array>;
getFileSize(path: RelativePath): Promise<number>; getFileSize: (path: RelativePath) => Promise<number>;
getModificationTime: (path: RelativePath) => Promise<Date>; getModificationTime: (path: RelativePath) => Promise<Date>;

View file

@ -1,4 +1,5 @@
import { TFile, Vault } from "obsidian"; import type { Vault } from "obsidian";
import { TFile } from "obsidian";
import { normalizePath } from "obsidian"; import { normalizePath } from "obsidian";
import type { FileOperations } from "./file-operations"; import type { FileOperations } from "./file-operations";
import type { RelativePath } from "src/database/document-metadata"; import type { RelativePath } from "src/database/document-metadata";

View file

@ -10,7 +10,6 @@ import type {
} from "src/database/document-metadata"; } from "src/database/document-metadata";
import { Logger } from "src/tracing/logger"; import { Logger } from "src/tracing/logger";
import { retriedFetch } from "src/utils/retried-fetch"; import { retriedFetch } from "src/utils/retried-fetch";
import { serialize } from "src/utils/serialize";
export interface CheckConnectionResult { export interface CheckConnectionResult {
isSuccessful: boolean; isSuccessful: boolean;
@ -87,6 +86,7 @@ export class SyncService {
authorization: `Bearer ${this.database.getSettings().token}` authorization: `Bearer ${this.database.getSettings().token}`
} }
}, },
// eslint-disable-next-line
body: formData as any // FormData is not supported by openapi-fetch body: formData as any // FormData is not supported by openapi-fetch
} }
); );
@ -137,6 +137,7 @@ export class SyncService {
authorization: `Bearer ${this.database.getSettings().token}` authorization: `Bearer ${this.database.getSettings().token}`
} }
}, },
// eslint-disable-next-line
body: formData as any // FormData is not supported by openapi-fetch body: formData as any // FormData is not supported by openapi-fetch
} }
); );