From 1fde95d2d60afc53205bd3a11ad5acac4731b35e Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 24 Sep 2026 22:58:21 -0400 Subject: [PATCH] fix: nullish coalesces to undefined to sync error --- src/backend/scrobblers/AbstractHistoricalScrobbleClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/scrobblers/AbstractHistoricalScrobbleClient.ts b/src/backend/scrobblers/AbstractHistoricalScrobbleClient.ts index 0939120e..272425b1 100644 --- a/src/backend/scrobblers/AbstractHistoricalScrobbleClient.ts +++ b/src/backend/scrobblers/AbstractHistoricalScrobbleClient.ts @@ -220,7 +220,7 @@ export default abstract class AbstractHistoricalScrobbleClient extends AbstractS imports.sort((a, b) => sortByNewestDate(a.attemptedAt, b.attemptedAt)); this.lastImport = imports[0].attemptedAt; if(!this.synced) { - this.syncError = imports[0].error as ErrorIsh | undefined; // TODO strict: db error is nullable, syncError type expects undefined + this.syncError = imports[0].error ?? undefined; } const success = imports.find(x => x.success); if(success) { -- 2.51.2