Fix export function

This commit is contained in:
Andrew-71 2024-05-07 10:56:50 +03:00
parent b1c3b90c75
commit e10d6112f5

View file

@ -54,11 +54,11 @@ func Export(filename string) error {
return err
}
err = file.Close()
err = w.Close()
if err != nil {
return err
}
return w.Close()
return file.Close()
}
// GetExport returns a .zip archive with contents of the data folder