Update Egg Export Version to PLCN_V1 (#676)

* Update Egg Export Version to PLCN_V1

resolves #675

* correct version tag

* remove trailing space
This commit is contained in:
Michael (Parker) Parker 2024-10-27 18:04:21 -04:00 committed by GitHub
parent fdd1b3798c
commit 1a3dc5c743
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class Egg extends Model
/** /**
* Defines the current egg export version. * 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 * Different features that can be enabled on any given egg. These are used internally

View File

@ -110,6 +110,7 @@ class EggImporterService
$parsed = match ($version) { $parsed = match ($version) {
'PTDL_v1' => $this->convertToV2($parsed), 'PTDL_v1' => $this->convertToV2($parsed),
'PTDL_v2' => $parsed, 'PTDL_v2' => $parsed,
'PLCN_V1' => $parsed,
default => throw new InvalidFileUploadException('The JSON file provided is not in a format that can be recognized.') default => throw new InvalidFileUploadException('The JSON file provided is not in a format that can be recognized.')
}; };