24 lines
573 B
TypeScript
24 lines
573 B
TypeScript
import { getOutdatedPhotosCount } from '@/photo/db/query';
|
|
import {
|
|
getSignificantInsights,
|
|
indicatorStatusForSignificantInsights,
|
|
} from '.';
|
|
import { getGitHubMetaForCurrentApp } from '.';
|
|
|
|
export const getInsightsIndicatorStatus = async () => {
|
|
const [
|
|
codeMeta,
|
|
photosCountOutdated,
|
|
] = await Promise.all([
|
|
getGitHubMetaForCurrentApp(),
|
|
getOutdatedPhotosCount(),
|
|
]);
|
|
|
|
const significantInsights = getSignificantInsights({
|
|
codeMeta,
|
|
photosCountOutdated,
|
|
});
|
|
|
|
return indicatorStatusForSignificantInsights(significantInsights);
|
|
};
|