refactor event system
This commit is contained in:
@ -164,7 +164,7 @@ void full_server::handle_unpin_file(const httplib::Request &req,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (exists) {
|
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;
|
res.status = exists ? http_error_codes::ok : http_error_codes::not_found;
|
||||||
|
Reference in New Issue
Block a user