fosrl.pangolin/server/setup/index.ts

10 lines
377 B
TypeScript
Raw Normal View History

2024-12-22 12:33:49 -05:00
import { ensureActions } from "./ensureActions";
import { copyInConfig } from "./copyInConfig";
2025-02-24 22:46:55 -05:00
import { clearStaleData } from "./clearStaleData";
2024-12-22 12:33:49 -05:00
export async function runSetupFunctions() {
2025-07-16 16:56:05 -07:00
await copyInConfig(); // copy in the config to the db as needed
await ensureActions(); // make sure all of the actions are in the db and the roles
await clearStaleData();
2024-12-25 15:54:32 -05:00
}