Skip to content

Commit

Permalink
Teacher and school changes added
Browse files Browse the repository at this point in the history
  • Loading branch information
Arif-tekdi-technologies committed Mar 15, 2024
1 parent 745dea8 commit 3b14db4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/admin/src/components/SchoolCSV.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function CSVImportForm() {
}

try {
const result = await schoolBulkAPI(requestData.schools);
const result = await schoolBulkAPI(requestData);
if (result === true) {
let names = localStorage.getItem("bulkErrorsNames") || "";
let errorMessage = localStorage.getItem("errorMessage") || "";
Expand Down
14 changes: 7 additions & 7 deletions packages/admin/src/components/TeacherCSV.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ function CSVImportForm() {
const teacherData = csvData[i];
const teacherObject = {
name: teacherData["Name"] || null,
username: null,
username: studentData["username"] || "",
email: teacherData["Email Id"] || null,
mobile: teacherData["Mobile"] || null,
gender: teacherData["Gender"] || null,
dateOfBirth: teacherData["DoB"] || null,
board: teacherData["board"] || null,
mobile: teacherData["Mobile"] || "",
gender: teacherData["Gender"] || "",
dateOfBirth: teacherData["DoB"] || "",
board: teacherData["board"] || "",
password: null,
status: teacherData["Status"] || null,
groups: [],
educationalQualification:
teacherData["Educational Qualification"] || null,
schoolUdise: teacherData["School Udise"] || null,
schoolUdise: teacherData["School Udise"] || "",
currentRole: teacherData["Current role"] || null,
natureOfAppointment: teacherData["Nature of appointment"] || null,
appointedPost: teacherData["Appointed Postname"] || null,
Expand All @@ -115,7 +115,7 @@ function CSVImportForm() {
}

try {
const result = await teacherBulkAPI(requestData.teachers);
const result = await teacherBulkAPI(requestData);

if (result === true) {
let names = localStorage.getItem("bulkErrorsNames") || "";
Expand Down

0 comments on commit 3b14db4

Please sign in to comment.