From a3ffeae1fee1f0b40208427e8f80c60ac369a4b1 Mon Sep 17 00:00:00 2001 From: Valentin Yanakiev Date: Tue, 12 Nov 2024 16:42:45 +0200 Subject: [PATCH] Address PR comments --- .../license-entitlement/license.entitlement.service.ts | 8 +------- src/domain/common/license/license.service.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/domain/common/license-entitlement/license.entitlement.service.ts b/src/domain/common/license-entitlement/license.entitlement.service.ts index ccb1ae2e9..c86810a37 100644 --- a/src/domain/common/license-entitlement/license.entitlement.service.ts +++ b/src/domain/common/license-entitlement/license.entitlement.service.ts @@ -38,12 +38,6 @@ export class LicenseEntitlementService { return entitlement; } - public async save( - entitlement: ILicenseEntitlement - ): Promise { - return await this.entitlementRepository.save(entitlement); - } - async getEntitlementOrFail( entitlementID: string, options?: FindOneOptions @@ -75,7 +69,7 @@ export class LicenseEntitlementService { }; } - async saveEntitlement( + public async saveEntitlement( entitlement: ILicenseEntitlement ): Promise { return await this.entitlementRepository.save(entitlement); diff --git a/src/domain/common/license/license.service.ts b/src/domain/common/license/license.service.ts index 6ba0b4d28..845200ca2 100644 --- a/src/domain/common/license/license.service.ts +++ b/src/domain/common/license/license.service.ts @@ -91,7 +91,7 @@ export class LicenseService { async saveAll(licenses: ILicense[]): Promise { this.logger.verbose?.( `Saving ${licenses.length} licenses`, - LogContext.AUTH + LogContext.LICENSE ); await this.licenseRepository.save(licenses, { chunk: 100,