diff --git a/src/main/java/net/frozenorb/apiv3/model/IpIntel.java b/src/main/java/net/frozenorb/apiv3/model/IpIntel.java index c315ca0..66ba856 100644 --- a/src/main/java/net/frozenorb/apiv3/model/IpIntel.java +++ b/src/main/java/net/frozenorb/apiv3/model/IpIntel.java @@ -49,13 +49,13 @@ public final class IpIntel { } else if (maxMindResult != null) { IpIntel newIpIntel = new IpIntel(id, maxMindResult); - ipIntelCollection.insertOne(newIpIntel, (ignored, error3) -> { + ipIntelCollection.insertOne(newIpIntel, SyncUtils.vertxWrap((ignored, error3) -> { if (error3 != null) { callback.onResult(null, error3); } else { callback.onResult(newIpIntel, null); } - }); + })); } else { // MaxMind failed to return result callback.onResult(null, null);