fix: remove duplicate session/shop declarations in managebrand action

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MOHAN 2026-06-11 13:53:35 +05:30
parent d791414f27
commit eefb2e612a

View File

@ -173,8 +173,6 @@ export const action = async ({ request }) => {
const { getTurn14AccessTokenFromMetafield } = await import("../utils/turn14Token.server"); const { getTurn14AccessTokenFromMetafield } = await import("../utils/turn14Token.server");
const accessToken = await getTurn14AccessTokenFromMetafield(request); const accessToken = await getTurn14AccessTokenFromMetafield(request);
const { session } = await authenticate.admin(request);
const shop = session.shop;
const resp = await fetch("https://backend.data4autos.com/manageProducts", { const resp = await fetch("https://backend.data4autos.com/manageProducts", {
method: "POST", method: "POST",