High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Stop requiring a DELETE call for fresh import after finished imports. Closes #1369.
Kailash Nadh5b404615fce1
diff --git a/internal/subimporter/importer.go b/internal/subimporter/importer.goindex 4c37cfe8..17f1159d 100644--- a/internal/subimporter/importer.go+++ b/internal/subimporter/importer.go@@ -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")}