From 42cb54c836caab45eafa5af7b4e2d85f8c9d5cf8 Mon Sep 17 00:00:00 2001 From: Dion Date: Tue, 25 Jul 2023 11:09:14 +0200 Subject: [PATCH] small changes --- starsky/starsky.foundation.database/Query/Query.cs | 1 - .../starsky/clientapp/src/hooks/realtime/websocket-service.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/starsky/starsky.foundation.database/Query/Query.cs b/starsky/starsky.foundation.database/Query/Query.cs index 7e98e87325..f21cfab9f1 100644 --- a/starsky/starsky.foundation.database/Query/Query.cs +++ b/starsky/starsky.foundation.database/Query/Query.cs @@ -93,7 +93,6 @@ internal static string GetObjectByFilePathAsyncCacheName(string subPath) _cache.TryGetValue( GetObjectByFilePathAsyncCacheName(filePath), out var data) ) { - _logger.LogInformation("Get from cache " + GetObjectByFilePathAsyncCacheName(filePath)); if ( !(data is FileIndexItem fileIndexItem) ) return null; fileIndexItem.Status = FileIndexItem.ExifStatus.OkAndSame; return fileIndexItem; diff --git a/starsky/starsky/clientapp/src/hooks/realtime/websocket-service.ts b/starsky/starsky/clientapp/src/hooks/realtime/websocket-service.ts index 9046496303..800e2e061a 100644 --- a/starsky/starsky/clientapp/src/hooks/realtime/websocket-service.ts +++ b/starsky/starsky/clientapp/src/hooks/realtime/websocket-service.ts @@ -6,7 +6,7 @@ export default class WebSocketService { } catch (error) {} } - public onOpen(callback: (ev: Event) => void): void { + public onOpen(callback: (ev: Event) => Promise): void { if (!this.websocket) return; this.websocket.onopen = callback; }