Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 65b6a5a

Browse files
authored
Prioritize deleting
1 parent fd30373 commit 65b6a5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Commands/Import.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ public function import(array $users = [])
121121
// Save the returned model.
122122
$this->save($user, $model);
123123

124-
if ($this->isRestoring()) {
125-
$this->restore($user, $model);
126-
}
127-
128124
if ($this->isDeleting()) {
129125
$this->delete($user, $model);
130126
}
127+
128+
if ($this->isRestoring()) {
129+
$this->restore($user, $model);
130+
}
131131

132132
$imported++;
133133
} catch (Exception $e) {

0 commit comments

Comments
 (0)