refactor: replace ignored numeric literals with constants

This commit is contained in:
2026-09-28 16:37:01 +03:00
committed by ksv741
parent a970eaaf7a
commit b78c215ff1
60 changed files with 510 additions and 283 deletions
@@ -11,6 +11,8 @@ import {
type SavedCandle,
} from '../domain/candle-coverage';
const NO_UPDATED_ROWS = 0;
const provider = 'tbank';
const interval = 'day';
type CandleIntent = {
@@ -323,7 +325,7 @@ export class CandleRepository {
},
data: { state: 'complete', errorCode: null },
});
return result.count > 0;
return result.count > NO_UPDATED_ROWS;
});
}