Validator: Support up to version 2 of profiles entity

This commit is contained in:
koloml committed 2025-07-27 21:44:52 +04:00
1 parent 77293ba30c
commit e27257516d
1 file changed
+2 -2
+2 -2
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 (