datahub/wherehows-web/mirage/helpers/dataset-health.ts

8 lines
237 B
TypeScript

import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
export const getDatasetHealth = function(this: IFunctionRouteHandler, { db: { healths } }: any) {
return {
health: this.serialize(healths[0])
};
};