Commit 6b6f195e authored by Penny Leach's avatar Penny Leach
Browse files

clean up after ourselves on successful synchronous import as well as unsuccessful

parent 49d8205f
......@@ -347,6 +347,7 @@ function send_content_ready($token, $username, $format, $importdata, $fetchnow=f
$importer = Importer::create_importer($queue->id, $queue);
$importer->prepare();
$importer->process();
delete_records('import_queue', 'id', $queue->id);
$result->status = true;
$result->type = 'complete';
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment