Skip to content

Commit

Permalink
transform data fnuction name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mithunhegde-egov committed Sep 25, 2024
1 parent 58dc51e commit 10d2ec0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const TenantConfigUpload = () => {



const updateFileStoreIds=(inputData, requestData) =>{
const transformData=(inputData, requestData) =>{
// Iterate over the input data to update fileStoreId in requestData
inputData.forEach(input => {
requestData[0].documents.forEach(doc => {
Expand All @@ -115,7 +115,7 @@ const TenantConfigUpload = () => {

const triggerCreate = async (documentsArray, tenantDocument) => {
try {
const requestBody = updateFileStoreIds(documentsArray, tenantDocument);
const requestBody = transformData(documentsArray, tenantDocument);
// Assuming the mutation for API call is defined elsewher
await mutation.mutate(
{
Expand Down

0 comments on commit 10d2ec0

Please sign in to comment.