Skip to content

Commit

Permalink
Fixed sheetrows issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Jul 4, 2024
1 parent c18f81d commit 480d7d4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions utilities/project-factory/src/server/api/genericApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const getTargetSheetDataAfterCode = async (
const sheetData = getSheetDataFromWorksheet(worksheet);

// Find the target column index where the first row value matches codeColumnName
const firstRow = sheetData[1];
const firstRow = sheetData[0];
let targetColumnIndex = -1;
for (let colIndex = 1; colIndex < firstRow.length; colIndex++) {
if (firstRow[colIndex] === codeColumnName) {
Expand Down Expand Up @@ -745,8 +745,7 @@ async function createStaff(resouceBody: any) {
undefined,
undefined,
undefined,
false,
true
false
);
logger.info("Project Staff mapping created");
logger.debug(
Expand Down Expand Up @@ -774,8 +773,7 @@ async function createProjectResource(resouceBody: any) {
undefined,
undefined,
undefined,
false,
true
false
);
logger.debug("Project Resource Created");
logger.debug(
Expand Down Expand Up @@ -803,8 +801,7 @@ async function createProjectFacility(resouceBody: any) {
undefined,
undefined,
undefined,
false,
true
false
);
logger.info("Project Facility Created");
logger.debug(
Expand Down

0 comments on commit 480d7d4

Please sign in to comment.