From 29ef5ba2e168ade0129c79cc0f70481238a390b7 Mon Sep 17 00:00:00 2001 From: malmen237 Date: Thu, 5 Sep 2024 07:20:20 +0200 Subject: [PATCH] fix: rebase to main --- src/api/manager/job/syncInventory.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/manager/job/syncInventory.ts b/src/api/manager/job/syncInventory.ts index c068142..aa757ea 100644 --- a/src/api/manager/job/syncInventory.ts +++ b/src/api/manager/job/syncInventory.ts @@ -43,7 +43,7 @@ async function getSourcesFromAPI() { number_of_channels: source?.audio_stream?.number_of_channels, sample_rate: source?.audio_stream?.sample_rate }, - createdAt: new Date() + createdAt: new Date() } satisfies SourceWithoutLastConnected) ); } @@ -63,7 +63,7 @@ export async function runSyncInventory() { const statusUpdateCheck = ( inventorySource: WithId, - apiSource: Source + apiSource: SourceWithoutLastConnected ) => { const databaseStatus = inventorySource.status; const apiStatus = apiSource.status; @@ -101,7 +101,7 @@ export async function runSyncInventory() { ...inventorySource, status: statusUpdateCheck(inventorySource, apiSource), lastConnected: - apiSource.status !== 'gone' ? new Date() : inventorySource.lastConnected + apiSource.status !== 'gone' ? new Date() : inventorySource.lastConnected } satisfies WithId; });