From 3e3a4d0cd4e52634db40c4b695dbd71548a79bf2 Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 10 Apr 2023 18:28:41 +0200 Subject: [PATCH] cli: CommandTag: Use TagManager --- cli/commandtag.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/commandtag.cpp b/cli/commandtag.cpp index 68aaa02..f8da4fa 100644 --- a/cli/commandtag.cpp +++ b/cli/commandtag.cpp @@ -1,6 +1,7 @@ #include #include "commandtag.h" #include "logger.h" +#include "tagmanager.h" int CommandTag::handle(QStringList arguments) { @@ -52,7 +53,8 @@ int CommandTag::handle(QStringList arguments) paths[i] = absolutePath; } - bool result = this->dbService->addTag(tag, paths); + TagManager tagManager{*this->dbService}; + bool result = tagManager.addPathsToTag(tag, paths); if(!result) { Logger::error() << "Failed to assign tags" << Qt::endl;