FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
438 B

  1. "use client";
  2. import axiosInstance from "@/app/(main)/axios/axiosInstance";
  3. import { NEXT_PUBLIC_API_URL } from "@/config/api";
  4. export interface BomScoreRecalcResponse {
  5. updatedCount: number;
  6. }
  7. export const recalcBomScoresClient = async (): Promise<BomScoreRecalcResponse> => {
  8. const response = await axiosInstance.post<BomScoreRecalcResponse>(
  9. `${NEXT_PUBLIC_API_URL}/bom/scores/recalculate`,
  10. );
  11. return response.data;
  12. };