Skip to content

Commit

Permalink
fix license check
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Apr 6, 2020
1 parent b0bb193 commit 5a536bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ingest_pipelines/server/services/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from 'kibana/server';

import { LicensingPluginSetup } from '../../../licensing/server';
import { LicenseType, LICENSE_CHECK_STATE } from '../../../licensing/common/types';
import { LicenseType } from '../../../licensing/common/types';

export interface LicenseStatus {
isValid: boolean;
Expand All @@ -37,7 +37,7 @@ export class License {
) {
licensing.license$.subscribe(license => {
const { state, message } = license.check(pluginId, minimumLicenseType);
const hasRequiredLicense = state === LICENSE_CHECK_STATE.Valid;
const hasRequiredLicense = state === 'valid';

if (hasRequiredLicense) {
this.licenseStatus = { isValid: true };
Expand Down

0 comments on commit 5a536bd

Please sign in to comment.