mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-11-07 16:18:19 +00:00
Validator: Support up to version 2 of profiles entity
This commit is contained in:
1 parent
77293ba30c
commit
e27257516d
1 file changed
+2
-2
@@ -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