1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-23 23:02:58 +00:00

Validator: Support up to version 2 of profiles entity

This commit is contained in:
2025-07-27 21:44:52 +04:00
parent 77293ba30c
commit e27257516d

View File

@@ -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 (