Fixed the license upgrades
This commit is contained in:
parent
5dd3fd3e13
commit
7604b03f02
@ -5,8 +5,8 @@
|
||||
#include <LicenseRequest.pb.h>
|
||||
|
||||
namespace license::server::database {
|
||||
typedef size_t license_key_id_t;
|
||||
typedef size_t upgrade_id_t;
|
||||
typedef uint64_t license_key_id_t;
|
||||
typedef uint64_t upgrade_id_t;
|
||||
|
||||
class DatabaseHandler;
|
||||
class KeyIdCache {
|
||||
|
@ -346,7 +346,7 @@ namespace license {
|
||||
std::chrono::system_clock::time_point creation;
|
||||
|
||||
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); }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user