Fixed the license upgrades

This commit is contained in:
WolverinDEV 2021-03-10 20:31:25 +01:00
parent 5dd3fd3e13
commit 7604b03f02
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@
#include <LicenseRequest.pb.h> #include <LicenseRequest.pb.h>
namespace license::server::database { namespace license::server::database {
typedef size_t license_key_id_t; typedef uint64_t license_key_id_t;
typedef size_t upgrade_id_t; typedef uint64_t upgrade_id_t;
class DatabaseHandler; class DatabaseHandler;
class KeyIdCache { class KeyIdCache {

View File

@ -346,7 +346,7 @@ namespace license {
std::chrono::system_clock::time_point creation; std::chrono::system_clock::time_point creation;
bool deleted{false}; bool deleted{false};
uint32_t upgrade_id{0}; uint64_t upgrade_id{0};
inline bool isNotExpired() { return (end.time_since_epoch().count() == 0 || std::chrono::system_clock::now() < this->end); } inline bool isNotExpired() { return (end.time_since_epoch().count() == 0 || std::chrono::system_clock::now() < this->end); }
}; };