Skip to content

Commit

Permalink
Update ImportIconsCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo authored Jun 29, 2021
1 parent 28e2e52 commit bc6cd0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Commands/ImportIconsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ public function handle(Factory $factory, IconsManifest $manifest): int
$this->info('Starting to import icon sets...');

DB::transaction(function () {
Icon::withoutSyncingToSearch(function () {
Icon::query()->delete();
});

Icon::query()->delete();

IconSet::each(function (IconSet $iconSet) {
$this->parseIcons($iconSet);
Expand Down

0 comments on commit bc6cd0d

Please sign in to comment.