refactor event system

This commit is contained in:
2025-01-24 09:44:28 -06:00
parent ff985e724d
commit a34443ed94

View File

@ -164,7 +164,7 @@ void full_server::handle_unpin_file(const httplib::Request &req,
}
if (exists) {
event_system::instance().raise<file_unpinned>(api_path);
event_system::instance().raise<file_unpinned>(api_path, function_name);
}
res.status = exists ? http_error_codes::ok : http_error_codes::not_found;