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 = (
|
||||
feature: IFeatureToggleListItem,
|
||||
featureTypes: FeatureTypeSchema[],
|
||||
featureTypes: FeatureTypeSchema[]
|
||||
): string | undefined => {
|
||||
const { type, createdAt } = feature;
|
||||
|
||||
const featureType = featureTypes.find(
|
||||
(featureType) => featureType.name === type,
|
||||
featureType => featureType.name === type
|
||||
);
|
||||
|
||||
if (
|
||||
|
@ -8,12 +8,12 @@ export type ReportingStatus = 'potentially-stale' | 'healthy';
|
||||
|
||||
export const formatStatus = (
|
||||
feature: IFeatureToggleListItem,
|
||||
featureTypes: FeatureTypeSchema[],
|
||||
featureTypes: FeatureTypeSchema[]
|
||||
): ReportingStatus => {
|
||||
const { type, createdAt } = feature;
|
||||
|
||||
const featureType = featureTypes.find(
|
||||
(featureType) => featureType.name === type,
|
||||
featureType => featureType.name === type
|
||||
);
|
||||
const date = parseISO(createdAt);
|
||||
const now = new Date();
|
||||
|
Loading…
Reference in New Issue
Block a user