fix: validate import columns only if type is insert

This commit is contained in:
Jannat Patel 2025-12-10 11:30:13 +05:30
parent ec04d47bed
commit c9e8a293a4

View file

@ -647,7 +647,8 @@ class ImportFile:
elif extension == "xls":
data = read_xls_file_from_attached_file(content)
self.validate_columns_of_import_file(data)
if self.import_type == INSERT:
self.validate_columns_of_import_file(data)
return data