Skip to content

Commit

Permalink
Stop requiring a DELETE call for fresh import after finished imports. C…
Browse files Browse the repository at this point in the history
…loses #1369.
  • Loading branch information
knadh committed Jun 24, 2023
1 parent 530165f commit 5b40461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/subimporter/importer.go
Expand Up @@ -159,7 +159,7 @@ func New(opt Options, db *sql.DB, i *i18n.I18n) *Importer {
// NewSession returns an new instance of Session. It takes the name
// of the uploaded file, but doesn't do anything with it but retains it for stats.
func (im *Importer) NewSession(opt SessionOpt) (*Session, error) {
if im.getStatus() != StatusNone {
if !im.isDone() {
return nil, errors.New("an import is already running")
}

Expand Down

0 comments on commit 5b40461

Please sign in to comment.