Skip to content

Commit

Permalink
[feat]フロントの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Jul 11, 2024
1 parent 87d0383 commit b06e385
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { RiArrowDropRightLine } from 'react-icons/ri';

import { post } from '@api/purchaseItem';
import { post as postOrder } from '@api/purchaseOrder';
import { post as defaultPost } from '@api/api_methods';
import {
PrimaryButton,
OutlinePrimaryButton,
Expand Down Expand Up @@ -71,6 +72,9 @@ export default function AddModal(props: ModalProps) {
purchaseItemsAddOrderInfo.map(async (item) => {
await post(addPurchaseItemUrl, item);
});
// TODO POSTを申請・報告・slack通知で分けているため、一つのAPIにリファクタリングする
const notifySlackUrl = process.env.CSR_API_URI + `/purchaseorders/send/${purchaseOrderId}`;
await defaultPost(notifySlackUrl, purchaseOrder);
};

const submit = async (purchaseOrder: PurchaseOrder, formDataList: PurchaseItem[]) => {
Expand Down

0 comments on commit b06e385

Please sign in to comment.