Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Nov 2, 2024
1 parent 78946e4 commit 283bd43
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 82 deletions.
5 changes: 5 additions & 0 deletions app/Services/CSV/Conversion/RoutineManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public function start(): array

$count = count($CSVLines);

// debug messages on weird indexes.
// $this->addError(3, '3: No transactions found in CSV file.');
// $this->addMessage(5, '5: No transactions found in CSV file.');
// $this->addWarning(7, '7: No transactions found in CSV file.');

if (0 === $count) {
$this->addError(0, 'No transactions found in CSV file.');
$this->mergeMessages(1);
Expand Down
2 changes: 2 additions & 0 deletions app/Services/Shared/Import/Routine/ApiSubmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function processTransactions(array $lines): void
$uniqueCount = 0;
app('log')->info(sprintf('Going to submit %d transactions to your Firefly III instance.', $count));


$this->vanityURL = Token::getVanityURL();

app('log')->debug(sprintf('Vanity URL : "%s"', $this->vanityURL));
Expand Down Expand Up @@ -223,6 +224,7 @@ private function searchField(string $field, string $value): int

private function processTransaction(int $index, array $line): array
{
$index++;
$line = $this->cleanupLine($line);
$return = [];
$url = SecretManager::getBaseUrl();
Expand Down
Loading

0 comments on commit 283bd43

Please sign in to comment.