Skip to content

Commit

Permalink
rename TLicenseContainerStr to TLicenseBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
flipswitchingmonkey committed Mar 29, 2023
1 parent 06d7a46 commit 92dc8dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/License.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TEntitlement, TLicenseContainerStr } from '@n8n_io/license-sdk';
import type { TEntitlement, TLicenseBlock } from '@n8n_io/license-sdk';
import { LicenseManager } from '@n8n_io/license-sdk';
import type { ILogger } from 'n8n-workflow';
import { getLogger } from './Logger';
Expand All @@ -7,7 +7,7 @@ import * as Db from '@/Db';
import { LICENSE_FEATURES, N8N_VERSION, SETTINGS_LICENSE_CERT_KEY } from './constants';
import { Service } from 'typedi';

async function loadCertStr(): Promise<TLicenseContainerStr> {
async function loadCertStr(): Promise<TLicenseBlock> {
// if we have an ephemeral license, we don't want to load it from the database
const ephemeralLicense = config.get('license.cert');
if (ephemeralLicense) {
Expand All @@ -22,7 +22,7 @@ async function loadCertStr(): Promise<TLicenseContainerStr> {
return databaseSettings?.value ?? '';
}

async function saveCertStr(value: TLicenseContainerStr): Promise<void> {
async function saveCertStr(value: TLicenseBlock): Promise<void> {
// if we have an ephemeral license, we don't want to save it to the database
if (config.get('license.cert')) return;
await Db.collections.Settings.upsert(
Expand Down

0 comments on commit 92dc8dd

Please sign in to comment.