Skip to content

Commit 84eaf91

Browse files
fix condition for create repository class
1 parent 72557c9 commit 84eaf91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function checkDatabasesExist()
141141
$mysql = config('repository.path.relative.repositories') . DIRECTORY_SEPARATOR . $entityName . DIRECTORY_SEPARATOR . 'MySql' . $entityName . 'Repository.php';
142142
$redis = config('repository.path.relative.repositories') . DIRECTORY_SEPARATOR . $entityName . DIRECTORY_SEPARATOR . 'Redis' . $entityName . 'Repository.php';
143143

144-
if (!(file_exists($mysql) && file_exists($redis))) {
144+
if (!(file_exists($mysql) || file_exists($redis))) {
145145
$this->alert("First create the class databases!!!");
146146
exit;
147147
}

0 commit comments

Comments
 (0)