mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-09 17:18:31 +00:00
Dont run on cloud
This commit is contained in:
parent
3699f8f9cb
commit
8f377a4fb2
1 changed files with 4 additions and 0 deletions
|
|
@ -3,8 +3,12 @@ import { db, orgs } from "@server/db";
|
|||
import { actions, roles, roleActions } from "@server/db";
|
||||
import { eq, inArray } from "drizzle-orm";
|
||||
import logger from "@server/logger";
|
||||
import { build } from "@server/build";
|
||||
|
||||
export async function ensureActions() {
|
||||
if (build == "saas") {
|
||||
return;
|
||||
}
|
||||
await db.transaction(async (trx) => {
|
||||
const actionIds = Object.values(ActionsEnum);
|
||||
const existingActions = await trx.select().from(actions).execute();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue