Use new API

This commit is contained in:
Andras Schmelczer 2024-12-14 17:06:40 +00:00
parent 65a42a18bf
commit 570b5f9bfc
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 31 additions and 19 deletions

View file

@ -3,7 +3,8 @@ import { TFile } from "obsidian";
import { Database } from "src/database/database";
import { Logger } from "src/logger";
import { SyncServer } from "src/services/sync_service";
import { hash, isEqualBytes } from "src/utils";
import { hash } from "src/utils/hash.js";
import { isEqualBytes } from "src/utils/is-equal-bytes.js";
export async function syncLocallyUpdatedFile({
database,
@ -43,7 +44,7 @@ export async function syncLocallyUpdatedFile({
const localDbUpdatePromise = database.moveDocument({
oldRelativePath: oldPath || file.path,
relativePath: file.path,
parentVersionId: response.versionId,
parentVersionId: response.vaultUpdateId,
hash: contentHash,
});