website refactor
This commit is contained in:
@@ -68,10 +68,10 @@ export type RacingSeedOptions = {
|
||||
};
|
||||
|
||||
export const racingSeedDefaults: Readonly<
|
||||
Required<RacingSeedOptions>
|
||||
Omit<Required<RacingSeedOptions>, 'baseDate'> & { baseDate: () => Date }
|
||||
> = {
|
||||
driverCount: 150, // Increased from 100 to 150
|
||||
baseDate: new Date(),
|
||||
baseDate: () => new Date(),
|
||||
persistence: 'inmemory',
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ class RacingSeedFactory {
|
||||
|
||||
constructor(options: RacingSeedOptions) {
|
||||
this.driverCount = options.driverCount ?? racingSeedDefaults.driverCount;
|
||||
this.baseDate = options.baseDate ?? racingSeedDefaults.baseDate;
|
||||
this.baseDate = options.baseDate ?? racingSeedDefaults.baseDate();
|
||||
this.persistence = options.persistence ?? racingSeedDefaults.persistence;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user