fix a silly
All checks were successful
deploy / deploy (push) Successful in 29s

This commit is contained in:
Lee 2023-10-27 16:18:49 +01:00
parent 42485166bf
commit 63662a6074
2 changed files with 2 additions and 1 deletions

@ -1,6 +1,7 @@
import express from "express";
import { INFLUXDB_BUCKET, InfluxQueryAPI } from "../index";
import { formatString } from "../utils/stringUtils";
import { parseTimeToMilliseconds } from "../utils/timeUtils";
const app = express();
const port = process.env.PORT || 3000;

@ -4,7 +4,7 @@
* @param time the time to parse
* @returns the time in milliseconds
*/
function parseTimeToMilliseconds(time: string) {
export function parseTimeToMilliseconds(time: string) {
// Regular expression to match the numeric value and unit
const regex = /^(\d+)([smhdwMy])$/;