From 1b21e194cfc9001fe4e63193090c25830c918279 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 24 May 2025 19:02:27 +0100 Subject: [PATCH] Update types --- frontend/sync-client/src/tracing/sync-history.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/sync-client/src/tracing/sync-history.ts b/frontend/sync-client/src/tracing/sync-history.ts index 40a27ea8..4cc5e77e 100644 --- a/frontend/sync-client/src/tracing/sync-history.ts +++ b/frontend/sync-client/src/tracing/sync-history.ts @@ -4,26 +4,22 @@ import type { Logger } from "./logger"; export interface SyncCreateDetails { type: SyncType.CREATE; relativePath: RelativePath; - author?: string; } export interface SyncUpdateDetails { type: SyncType.UPDATE; relativePath: RelativePath; - author?: string; } export interface SyncMovedDetails { type: SyncType.MOVE; relativePath: RelativePath; movedFrom: RelativePath; - author?: string; } export interface SyncDeleteDetails { type: SyncType.DELETE; relativePath: RelativePath; - author?: string; } export interface SyncSkippedDetails { @@ -42,6 +38,7 @@ export interface CommonHistoryEntry { status: SyncStatus; message: string; details: SyncDetails; + author?: string; } export enum SyncType { @@ -165,6 +162,9 @@ export class SyncHistory { this.status.error++; this.logger.error(`Cannot sync file: ${message}`); break; + case SyncStatus.SKIPPED: + this.logger.error(`Skipping file: ${message}`); + break; } this.syncHistoryUpdateListeners.forEach((listener) => {