Skip to content

Commit

Permalink
chore: move actions service to new folder structure (formbricks#943)
Browse files Browse the repository at this point in the history
* feat: move actions service

* fix: rename folder to be singular not plural

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
  • Loading branch information
rotimi-best and mattinannt authored Oct 4, 2023
1 parent 6607b9f commit 445a424
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
getActionCountInLast24Hours,
getActionCountInLast7Days,
getActionCountInLastHour,
} from "@formbricks/lib/services/actions";
} from "@formbricks/lib/action/service";
import { getSurveysByActionClassId } from "@formbricks/lib/survey/service";
import { AuthorizationError } from "@formbricks/types/v1/errors";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { updateEnvironmentAction } from "@/app/(app)/environments/[environmentId
import EnvironmentNotice from "@/components/shared/EnvironmentNotice";
import WidgetStatusIndicator from "@/components/shared/WidgetStatusIndicator";
import { REVALIDATION_INTERVAL } from "@formbricks/lib/constants";
import { getActionsByEnvironmentId } from "@formbricks/lib/services/actions";
import { getActionsByEnvironmentId } from "@formbricks/lib/action/service";
import { getEnvironment } from "@formbricks/lib/services/environment";
import { ErrorComponent } from "@formbricks/ui";
import SettingsCard from "../SettingsCard";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { updateEnvironmentAction } from "@/app/(app)/environments/[environmentId
import ContentWrapper from "@/components/shared/ContentWrapper";
import WidgetStatusIndicator from "@/components/shared/WidgetStatusIndicator";
import { REVALIDATION_INTERVAL } from "@formbricks/lib/constants";
import { getActionsByEnvironmentId } from "@formbricks/lib/services/actions";
import { getActionsByEnvironmentId } from "@formbricks/lib/action/service";
import { getEnvironment } from "@formbricks/lib/services/environment";
import { Metadata } from "next";
import SurveysList from "./SurveyList";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/api/v1/js/actions/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { responses } from "@/lib/api/response";
import { transformErrorToDetails } from "@/lib/api/validator";
import { createAction } from "@formbricks/lib/services/actions";
import { createAction } from "@formbricks/lib/action/service";
import { ZJsActionInput } from "@formbricks/types/v1/js";
import { NextResponse } from "next/server";

Expand Down
File renamed without changes.

0 comments on commit 445a424

Please sign in to comment.