Add setup entrypoint

This commit is contained in:
Owen Schwartz 2024-12-22 12:33:49 -05:00
parent eb45fe8e49
commit 3d2d2043a9
4 changed files with 12 additions and 7 deletions

7
server/setup/index.ts Normal file
View file

@ -0,0 +1,7 @@
import { ensureActions } from "./ensureActions";
import { copyInConfig } from "./copyInConfig";
export async function runSetupFunctions() {
await ensureActions(); // make sure all of the actions are in the db and the roles
await copyInConfig(); // copy in the config to the db as needed
}