import { utc } from 'moment' ; import type { VisTypeTimeseriesVisDataRequest } from '../../../types' ; export const getTimerange = ( req ) => { const { min , max } = req . body . timerange ; return { from : utc ( min ) , to : utc ( max ) , } ; } ;