fix: correct calling method
This commit is contained in:
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user