mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-05 19:59:43 +00:00
Dont run on cloud
This commit is contained in:
@@ -3,8 +3,12 @@ import { db, orgs } from "@server/db";
|
|||||||
import { actions, roles, roleActions } from "@server/db";
|
import { actions, roles, roleActions } from "@server/db";
|
||||||
import { eq, inArray } from "drizzle-orm";
|
import { eq, inArray } from "drizzle-orm";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
export async function ensureActions() {
|
export async function ensureActions() {
|
||||||
|
if (build == "saas") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
await db.transaction(async (trx) => {
|
await db.transaction(async (trx) => {
|
||||||
const actionIds = Object.values(ActionsEnum);
|
const actionIds = Object.values(ActionsEnum);
|
||||||
const existingActions = await trx.select().from(actions).execute();
|
const existingActions = await trx.select().from(actions).execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user