converted export

This commit is contained in:
Jonathan Labreuille
2016-08-17 12:23:15 +02:00
parent 9582e58dda
commit 876e386966
2 changed files with 18 additions and 28 deletions

View File

@@ -58,17 +58,11 @@ class Export {
)
);
} catch(\Exception $e) {
return array(
'result' => false,
'errors' => array($e->getMessage())
);
throw new \Exception($e->getMessage());
}
return array(
'result' => true,
'data' => array(
'totalExported' => $processed_subscribers,
'exportFileURL' => $this->export_file_URL
)
'totalExported' => $processed_subscribers,
'exportFileURL' => $this->export_file_URL
);
}