Skip to content

Commit

Permalink
fix double type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
temaotl committed May 14, 2024
1 parent ae3df2e commit 505e97e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions app/Console/Commands/DumpFromGit.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ class DumpFromGit extends Command
protected $description = 'Command description';




/**
* Execute the console command.
* @throws \Exception no amin
*/
public function handle()
{
$firstAdminId = User::where('admin', 1)->first()->id;
if(empty($firstAdminId))
throw new \Exception('firstAdminId is null');


$this->initializeGit();
$this->createFederations();
$this->createEntities($firstAdminId);
Expand Down
2 changes: 1 addition & 1 deletion app/Services/EntityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function SaveEntityMetadataToFile($entity_id,$federation_id)
{
Storage::disk('metadata')->makeDirectory($folderName);
}
$filePath = $folderName . '/' . $fileName . 'xml';
$filePath = $folderName . '/' . $fileName;
$content = $entity->xml_file;
Storage::disk('metadata')->put($filePath, $content);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 505e97e

Please sign in to comment.