This commit is contained in:
parent
d908e931b1
commit
d2928e5580
@ -279,6 +279,12 @@ void sqlite_meta_db::remove_api_path(const std::string &api_path) {
|
|||||||
|
|
||||||
auto sqlite_meta_db::remove_item_meta(const std::string &api_path,
|
auto sqlite_meta_db::remove_item_meta(const std::string &api_path,
|
||||||
const std::string &key) -> api_error {
|
const std::string &key) -> api_error {
|
||||||
|
if (key == META_DIRECTORY || key == META_PINNED || key == META_SIZE ||
|
||||||
|
key == META_SOURCE) {
|
||||||
|
// TODO log warning for unsupported attributes
|
||||||
|
return api_error::success;
|
||||||
|
}
|
||||||
|
|
||||||
api_meta_map meta{};
|
api_meta_map meta{};
|
||||||
auto res = get_item_meta(api_path, meta);
|
auto res = get_item_meta(api_path, meta);
|
||||||
if (res != api_error::success) {
|
if (res != api_error::success) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user