Fix the "fake" newer version number being actually older

This commit is contained in:
Tamás Bálint Misius
2024-12-18 19:26:57 +01:00
parent 7394a1c081
commit a01a075551

View File

@@ -17,7 +17,9 @@
#include <algorithm>
constexpr auto currentVersion = UPSTREAM_VERSION.displayVersion;
constexpr auto nextVersion = Version(98, 0);
constexpr auto nextVersion = Version(99, 0);
static_assert(nextVersion >= currentVersion);
constexpr auto effectiveVersion = ALLOW_FAKE_NEWER_VERSION ? nextVersion : currentVersion;
static void ConvertJsonToBson(bson *b, Json::Value j, int depth = 0);