Update cmd_sync.cpp

This commit is contained in:
Kroese
2024-12-09 16:14:40 +01:00
committed by GitHub
parent bfcafb5eea
commit 9ba0626993

View File

@ -237,7 +237,7 @@ void cmd_sync(const std::vector<std::string> &subArgs) {
auto &evJson = msg.at(2);
std::string okMsg;
auto res = writePolicyPlugin.acceptEvent(cfg().relay__writePolicy__plugin, evJson, EventSourceType::Sync, ws.remoteAddr, okMsg);
auto res = writePolicyPlugin.acceptEvent(cfg().relay__writePolicy__plugin, evJson, EventSourceType::Sync, url, okMsg);
if (res == PluginEventSifterResult::Accept) {
writer.write({ std::move(evJson), });
} else {