fix: correct calling method

This commit is contained in:
2025-03-13 17:47:46 +07:00
parent 031e22a4a3
commit cedcbbbf8b

View File

@@ -17,7 +17,7 @@ func (s *ExcelModule) ImportAllEntities() error {
if err != nil { if err != nil {
return err return err
} }
err = excel.ImportFromSpreadsheet(filepath, excel.Importer{ err = excel.ImportEntitiesFromSpreadsheet(filepath, excel.Importer{
SheetName: "Тип поста", SheetName: "Тип поста",
Loader: func(rowIndex int, row []string) error { Loader: func(rowIndex int, row []string) error {
id, err := strconv.Atoi(row[0]) id, err := strconv.Atoi(row[0])