Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teacher and school changes added #47

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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