Skip to content

Commit

Permalink
Dashboard Improvement (#2304)
Browse files Browse the repository at this point in the history
Added the required modifications for the URL
  • Loading branch information
ua741 authored Jun 27, 2024
2 parents a3d7c53 + f11cc82 commit 0def478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/staff/src/components/UpdateSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import "../App.css";
import { apiOrigin } from "../services/support";
interface UpdateSubscriptionProps {
token: string;
userId: string;
Expand Down Expand Up @@ -51,7 +52,7 @@ export const UpdateSubscription: React.FC<UpdateSubscriptionProps> = ({
? expiryTime.getTime() * 1000
: "";

const url = `http://localhost:8080/admin/user/subscription`;
const url = `${apiOrigin}/admin/user/subscription`;
const body = {
userId,
storage,
Expand Down

0 comments on commit 0def478

Please sign in to comment.