Fix cast to long in MongoStorage

This commit is contained in:
Luck 2021-12-04 10:41:12 +00:00
parent f35a9b6a09
commit 9c0874162b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -667,7 +667,7 @@ public class MongoStorage implements StorageImplementation {
} }
if (document.containsKey("expiry")) { if (document.containsKey("expiry")) {
builder.expiry(document.getLong("expiry")); builder.expiry((long) document.get("expiry"));
} }
if (document.containsKey("context") && document.get("context") instanceof List) { if (document.containsKey("context") && document.get("context") instanceof List) {