chore: update version check to v3

This commit is contained in:
Yaros 2026-04-11 11:22:54 +02:00
parent 6af125b3f8
commit 9df7efcea5

View File

@ -66,7 +66,7 @@ class SyncApiRepository {
SyncRequestType.peopleV1,
if (serverVersion < const SemVer(major: 2, minor: 6, patch: 0)) SyncRequestType.assetFacesV1,
if (serverVersion >= const SemVer(major: 2, minor: 6, patch: 0)) SyncRequestType.assetFacesV2,
if (serverVersion >= const SemVer(major: 2, minor: 7, patch: 0)) SyncRequestType.assetOcrV1,
if (serverVersion >= const SemVer(major: 3, minor: 0, patch: 0)) SyncRequestType.assetOcrV1,
],
reset: shouldReset,
).toJson(),