Print pending id

This commit is contained in:
Andras Schmelczer 2025-05-23 21:57:41 +01:00
parent 0295b5633f
commit 0cd2e9175f
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 7 additions and 2 deletions

View file

@ -128,12 +128,17 @@ export class Syncer {
const [promise, resolve, reject] = createPromise();
const id = uuidv4();
const document = this.database.createNewPendingDocument(
uuidv4(),
id,
relativePath,
promise
);
this.logger.debug(
`Creating new pending document ${relativePath} with id ${id}`
);
try {
await this.syncQueue.add(async () =>
this.internalSyncer.unrestrictedSyncLocallyCreatedFile(document)