Skip to content

Commit a61b565

Browse files
Fix HAS_NLOGHMANN_JSON to ZM_HAS_NLOGHMANN_JSON.
1 parent e7b455b commit a61b565

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zm_event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ void Event::AddPacket_(const std::shared_ptr<ZMPacket>packet) {
584584
if ((packet->codec_type == AVMEDIA_TYPE_VIDEO) or packet->image) {
585585
AddFrame(packet);
586586
}
587-
#if HAS_NLOHMANN_JSON
587+
#if ZM_HAS_NLOHMANN_JSON
588588
if (packet->detections.size()) {
589589
std::string sql = stringtf("INSERT INTO Event_Data (EventId,MonitorId,FrameId,Timestamp,Data) VALUES (%" PRId64 ", %d, %d, NOW(), '%s')", id, monitor->Id(), frames, packet->detections.dump().c_str());
590590
dbQueue.push(std::move(sql));

0 commit comments

Comments
 (0)