Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+5
-1
@@ -20,6 +20,7 @@ import BackButtonWithTitle from "~/components/ui/buttons/BackButtonWithTitle";
|
||||
import { toast } from "sonner";
|
||||
import { adminPath } from "~/utils/app/CanonicalUrlUtils";
|
||||
import { validateCSRFToken } from "~/utils/session.server";
|
||||
import { isHiveGridSubscriptionPricingModel } from "~/application/pricing/pricingModelPolicy";
|
||||
|
||||
export const meta: v2MetaFunction<typeof loader> = ({ data }) => (data && "metatags" in data ? data.metatags : []);
|
||||
|
||||
@@ -63,6 +64,9 @@ export const action: ActionFunction = async ({ request, params }) => {
|
||||
return badRequest({ error: t("shared.notFound") });
|
||||
}
|
||||
if (action === "edit") {
|
||||
if (!isHiveGridSubscriptionPricingModel(item.model)) {
|
||||
return badRequest({ error: t("shared.invalidForm") });
|
||||
}
|
||||
const order = Number(form.get("order"));
|
||||
const title = form.get("title")?.toString();
|
||||
const description = form.get("description")?.toString() ?? "";
|
||||
@@ -85,7 +89,7 @@ export const action: ActionFunction = async ({ request, params }) => {
|
||||
|
||||
const plan: SubscriptionProductDto = {
|
||||
id: params.id,
|
||||
stripeId: "",
|
||||
billingProviderId: "",
|
||||
order,
|
||||
title,
|
||||
description,
|
||||
|
||||
Reference in new issue
Block a user