refactor: replace ignored numeric literals with constants
This commit is contained in:
@@ -5,6 +5,8 @@ import type { Prisma } from '../../../../../generated/prisma/client';
|
||||
|
||||
import { PrismaService } from '../../../../prisma/prisma.service';
|
||||
|
||||
const FIRST_BATCH_OFFSET = 0;
|
||||
|
||||
export type ForecastSourceVersion = {
|
||||
dataRevision: number;
|
||||
fetchedAt: Date;
|
||||
@@ -82,7 +84,7 @@ export class ForecastRepository {
|
||||
// Four identity parameters per source: stay below SQLite's parameter limit.
|
||||
const sources: ForecastSourceVersion[] = [];
|
||||
for (
|
||||
let offset = 0;
|
||||
let offset = FIRST_BATCH_OFFSET;
|
||||
offset < input.sources.length;
|
||||
offset += forecastSourceReadBatchSize
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user