mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-29 01:42:08 +00:00
10 lines
279 B
TypeScript
10 lines
279 B
TypeScript
import { IFunctionRouteHandler } from 'wherehows-web/typings/ember-cli-mirage';
|
|
|
|
const getDatasetCount = function(this: IFunctionRouteHandler, { datasetsCounts }: any) {
|
|
const { count } = this.serialize(datasetsCounts.first());
|
|
|
|
return count;
|
|
};
|
|
|
|
export { getDatasetCount };
|