More query wrapped + fixed typo

This commit is contained in:
emeric
2024-04-02 23:04:54 +02:00
parent e2f68356fa
commit 50ecfb1378
8 changed files with 39 additions and 11 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
#include "database/Session.hpp"
#include "database/Track.hpp"
#include "IdTypeTraits.hpp"
#include "StringViewTraits.hpp"
#include "SqlQuery.hpp"
#include "Utils.hpp"
@@ -202,7 +203,7 @@ namespace lms::db
{
session.checkReadTransaction();
return utils::fetchQuerySingleResult(session.getDboSession()->find<ClusterType>().where("name = ?").bind(std::string{ name }));
return utils::fetchQuerySingleResult(session.getDboSession()->find<ClusterType>().where("name = ?").bind(name));
}
ClusterType::pointer ClusterType::find(Session& session, ClusterTypeId id)