mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
fix: fmt
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
a14f0e2e85
commit
c3f4ca8f7d
@ -6,12 +6,12 @@ import { FeatureTypeSchema } from 'openapi';
|
|||||||
|
|
||||||
export const formatExpiredAt = (
|
export const formatExpiredAt = (
|
||||||
feature: IFeatureToggleListItem,
|
feature: IFeatureToggleListItem,
|
||||||
featureTypes: FeatureTypeSchema[],
|
featureTypes: FeatureTypeSchema[]
|
||||||
): string | undefined => {
|
): string | undefined => {
|
||||||
const { type, createdAt } = feature;
|
const { type, createdAt } = feature;
|
||||||
|
|
||||||
const featureType = featureTypes.find(
|
const featureType = featureTypes.find(
|
||||||
(featureType) => featureType.name === type,
|
featureType => featureType.name === type
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -8,12 +8,12 @@ export type ReportingStatus = 'potentially-stale' | 'healthy';
|
|||||||
|
|
||||||
export const formatStatus = (
|
export const formatStatus = (
|
||||||
feature: IFeatureToggleListItem,
|
feature: IFeatureToggleListItem,
|
||||||
featureTypes: FeatureTypeSchema[],
|
featureTypes: FeatureTypeSchema[]
|
||||||
): ReportingStatus => {
|
): ReportingStatus => {
|
||||||
const { type, createdAt } = feature;
|
const { type, createdAt } = feature;
|
||||||
|
|
||||||
const featureType = featureTypes.find(
|
const featureType = featureTypes.find(
|
||||||
(featureType) => featureType.name === type,
|
featureType => featureType.name === type
|
||||||
);
|
);
|
||||||
const date = parseISO(createdAt);
|
const date = parseISO(createdAt);
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
Loading…
Reference in New Issue
Block a user