Skip to content

Commit

Permalink
fix: rebase to main
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Sep 5, 2024
1 parent cfb000c commit 29ef5ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/manager/job/syncInventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
Expand All @@ -63,7 +63,7 @@ export async function runSyncInventory() {

const statusUpdateCheck = (
inventorySource: WithId<Source>,
apiSource: Source
apiSource: SourceWithoutLastConnected
) => {
const databaseStatus = inventorySource.status;
const apiStatus = apiSource.status;
Expand Down Expand Up @@ -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<Source>;
});

Expand Down

0 comments on commit 29ef5ba

Please sign in to comment.