mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-30 02:07:04 +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 };
|