metaforecast/src/backend/flow/history/updateHistory.ts

10 lines
270 B
TypeScript
Raw Normal View History

2022-03-30 10:53:22 +00:00
import { pgReadWithReadCredentials, pgUpsert } from "../../database/pg-wrapper";
2022-03-16 21:02:34 +00:00
export async function updateHistory() {
2022-03-30 10:53:22 +00:00
let latest = await pgReadWithReadCredentials({ tableName: "combined" });
await pgUpsert({
2022-03-16 21:02:34 +00:00
contents: latest,
2022-03-30 10:53:22 +00:00
tableName: "h2022",
2022-03-16 21:02:34 +00:00
});
}