mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-02 03:15:05 -05:00
chore: add prettier config for import sorting, update packages, migrate to prettier 3 (#1777)
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import "server-only";
|
||||
|
||||
import { ZId } from "@formbricks/types/environment";
|
||||
import { validateInputs } from "../utils/validate";
|
||||
import { hasUserEnvironmentAccess } from "../environment/auth";
|
||||
import { getActionClass } from "./service";
|
||||
import { unstable_cache } from "next/cache";
|
||||
|
||||
import { ZId } from "@formbricks/types/environment";
|
||||
|
||||
import { SERVICES_REVALIDATION_INTERVAL } from "../constants";
|
||||
import { hasUserEnvironmentAccess } from "../environment/auth";
|
||||
import { getMembershipByUserIdTeamId } from "../membership/service";
|
||||
import { getAccessFlags } from "../membership/utils";
|
||||
import { getTeamByEnvironmentId } from "../team/service";
|
||||
import { validateInputs } from "../utils/validate";
|
||||
import { actionClassCache } from "./cache";
|
||||
import { getMembershipByUserIdTeamId } from "../../lib/membership/service";
|
||||
import { getAccessFlags } from "../../lib/membership/utils";
|
||||
import { getTeamByEnvironmentId } from "../../lib/team/service";
|
||||
import { getActionClass } from "./service";
|
||||
|
||||
export const canUserUpdateActionClass = async (userId: string, actionClassId: string): Promise<boolean> =>
|
||||
await unstable_cache(
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
"use server";
|
||||
|
||||
import "server-only";
|
||||
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { unstable_cache } from "next/cache";
|
||||
|
||||
import { prisma } from "@formbricks/database";
|
||||
import {
|
||||
TActionClass,
|
||||
@@ -11,12 +15,11 @@ import {
|
||||
import { ZOptionalNumber, ZString } from "@formbricks/types/common";
|
||||
import { ZId } from "@formbricks/types/environment";
|
||||
import { DatabaseError, ResourceNotFoundError } from "@formbricks/types/errors";
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { unstable_cache } from "next/cache";
|
||||
|
||||
import { ITEMS_PER_PAGE, SERVICES_REVALIDATION_INTERVAL } from "../constants";
|
||||
import { formatDateFields } from "../utils/datetime";
|
||||
import { validateInputs } from "../utils/validate";
|
||||
import { actionClassCache } from "./cache";
|
||||
import { formatDateFields } from "../utils/datetime";
|
||||
|
||||
const select = {
|
||||
id: true,
|
||||
|
||||
Reference in New Issue
Block a user