Fixed incorrectly logging insurance mesage

This commit is contained in:
Dev 2024-05-03 20:04:29 +01:00
parent 3125e768f7
commit 096c8471dc

View File

@ -106,10 +106,7 @@ export class InsuranceController
const profileInsuranceDetails = this.saveServer.getProfile(sessionID).insurance; const profileInsuranceDetails = this.saveServer.getProfile(sessionID).insurance;
if (profileInsuranceDetails.length > 0) if (profileInsuranceDetails.length > 0)
{ {
this.logger.debug( this.logger.debug(`Found ${profileInsuranceDetails.length} insurance packages in profile ${sessionID}`);
`Found ${profileInsuranceDetails.length} insurance packages in profile ${sessionID}`,
true,
);
} }
return profileInsuranceDetails.filter((insured) => insuranceTime >= insured.scheduledTime); return profileInsuranceDetails.filter((insured) => insuranceTime >= insured.scheduledTime);