Add setup entrypoint

This commit is contained in:
Owen Schwartz
2024-12-22 12:33:49 -05:00
parent 39a24c951c
commit 9988061058
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
}