Skip to content

Commit

Permalink
Update Egg Export Version to PLCN_V1 (#676)
Browse files Browse the repository at this point in the history
* Update Egg Export Version to PLCN_V1

resolves #675

* correct version tag

* remove trailing space
  • Loading branch information
parkervcp authored Oct 27, 2024
1 parent fdd1b37 commit 1a3dc5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Egg.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Egg extends Model
/**
* Defines the current egg export version.
*/
public const EXPORT_VERSION = 'PTDL_v2';
public const EXPORT_VERSION = 'PLCN_v1';

/**
* Different features that can be enabled on any given egg. These are used internally
Expand Down
1 change: 1 addition & 0 deletions app/Services/Eggs/Sharing/EggImporterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ protected function parseFile(UploadedFile $file): array
$parsed = match ($version) {
'PTDL_v1' => $this->convertToV2($parsed),
'PTDL_v2' => $parsed,
'PLCN_V1' => $parsed,
default => throw new InvalidFileUploadException('The JSON file provided is not in a format that can be recognized.')
};

Expand Down

0 comments on commit 1a3dc5c

Please sign in to comment.