You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
431 B
17 lines
431 B
import path from "path" |
|
import dotenv from "dotenv" |
|
dotenv.config({ path: path.resolve(__dirname, "../.env.local") }) |
|
|
|
import { Ctx } from "blitz" |
|
import db from "db" |
|
|
|
|
|
import { InfluxPeriod } from "./modules/influxdb/types" |
|
import influxdb from "./modules/influxdb" |
|
|
|
export default async function run(period:InfluxPeriod = InfluxPeriod.W) { |
|
const res = await influxdb.getHistoryOfState(period); |
|
console.log(res) |
|
|
|
} |
|
run() |