Fixed issue with skip vote counts, added headless chrome IP to config, other fixes

This commit is contained in:
TheEssem 2020-09-18 19:54:52 -05:00
parent bc59550625
commit 925eb387dd
7 changed files with 44 additions and 14 deletions

View file

@ -43,7 +43,7 @@ Napi::Value Sonic(const Napi::CallbackInfo &info)
Napi::Object obj = info[0].As<Napi::Object>();
Napi::Function cb = info[1].As<Napi::Function>();
string text = obj.Get("path").As<Napi::String>().Utf8Value();
string text = obj.Get("text").As<Napi::String>().Utf8Value();
SonicWorker* explodeWorker = new SonicWorker(cb, text);
explodeWorker->Queue();