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
|
|
|
});
|
|
|
|
}
|