We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f361977 commit 9e8f161Copy full SHA for 9e8f161
src/app/Services/Importers/Import.php
@@ -99,7 +99,7 @@ private function queueChunks()
99
100
private function prepareChunk()
101
{
102
- $this->dataImport->update(['chunks' => $this->dataImport->chunks + 1]);
+ $this->dataImport->increment('chunks');
103
104
$this->chunk = collect();
105
@@ -112,8 +112,10 @@ private function prepareChunk()
112
113
$this->rowIterator->next();
114
115
- if ($this->fileHasFinished()) {
116
- $this->dataImport->update(['file_parsed' => true]);
+ if ($this->sheetHasFinished()) {
+ if ($this->fileHasFinished()) {
117
+ $this->dataImport->update(['file_parsed' => true]);
118
+ }
119
120
break;
121
}
0 commit comments