From 9640a745b7a2aef6c9f9bde79694abfaf3cb1e3a Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Wed, 23 Oct 2024 19:59:05 +0200 Subject: [PATCH] Fix C++ --- cpp/bindings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/bindings.cpp b/cpp/bindings.cpp index 098eca1f..a4cd737e 100644 --- a/cpp/bindings.cpp +++ b/cpp/bindings.cpp @@ -131,7 +131,8 @@ void install(jsi::Runtime &rt, std::shared_ptr invoker, std::string url = options.getProperty(rt, "url").asString(rt).utf8(rt); std::string auth_token = options.getProperty(rt, "authToken").asString(rt).utf8(rt); - int sync_interval = 0 if (options.hasProperty(rt, "syncInterval")) { + int sync_interval = 0; + if (options.hasProperty(rt, "syncInterval")) { sync_interval = static_cast(options.getProperty(rt, "syncInterval").asNumber()); }