First working version of a working Spectre import.

This commit is contained in:
James Cole
2018-05-19 21:13:00 +02:00
parent 04953b5645
commit 2c206bba64
17 changed files with 552 additions and 172 deletions

View File

@@ -382,7 +382,9 @@ class ImportArrayStorage
$store['date'] = Carbon::createFromFormat('Y-m-d', $store['date']);
$store['description'] = $store['description'] === '' ? '(empty description)' : $store['description'];
// store the journal.
$collection->push($this->journalRepos->store($store));
$journal = $this->journalRepos->store($store);
Log::debug(sprintf('Stored as journal #%d', $journal->id));
$collection->push($journal);
}
Log::debug('DONE storing!');