metaforecast/src/backend/flow/history/updateHistory.ts
Vyacheslav Matyukhin 4eeab9c861
WIP: no schemas
2022-03-30 20:21:38 +03:00

10 lines
270 B
TypeScript

import { pgReadWithReadCredentials, pgUpsert } from "../../database/pg-wrapper";
export async function updateHistory() {
let latest = await pgReadWithReadCredentials({ tableName: "combined" });
await pgUpsert({
contents: latest,
tableName: "h2022",
});
}