mirror of
https://github.com/koloml/furbooru-tagging-assistant.git
synced 2025-12-24 07:12:57 +00:00
Validator: Support up to version 2 of profiles entity
This commit is contained in:
@@ -21,8 +21,8 @@ type EntitiesValidationMap = {
|
||||
*/
|
||||
const entitiesValidators: EntitiesValidationMap = {
|
||||
profiles: importedObject => {
|
||||
if (importedObject.v !== 1) {
|
||||
throw new Error('Unsupported version!');
|
||||
if (!importedObject.v || importedObject.v > 2) {
|
||||
throw new Error('Unsupported profile version!');
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user