mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
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:
parent
fdd1b3798c
commit
1a3dc5c743
@ -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
|
||||||
|
@ -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.')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user