Addressed build failures by initializing an array properly as '[]' instead of 'undefined,' (!185)

Co-authored-by: Mihai <mihai@something.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/185
Co-authored-by: Mihai <mihai@noreply.dev.sp-tarkov.com>
Co-committed-by: Mihai <mihai@noreply.dev.sp-tarkov.com>
This commit is contained in:
Mihai 2024-01-07 07:40:16 +00:00 committed by chomp
parent b9c82dbb4d
commit 3c32c8cc67

View File

@ -31,7 +31,7 @@ export class SeasonalEventService
protected christmasEventActive: boolean = undefined; protected christmasEventActive: boolean = undefined;
/** All events active at this point in time */ /** All events active at this point in time */
protected currentlyActiveEvents: SeasonalEventType[] = undefined; protected currentlyActiveEvents: SeasonalEventType[] = [];
constructor( constructor(
@inject("WinstonLogger") protected logger: ILogger, @inject("WinstonLogger") protected logger: ILogger,