Created an interface for the Db class
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "core/LiteralString.hpp"
|
||||
#include "core/Service.hpp"
|
||||
#include "core/String.hpp"
|
||||
#include "database/Db.hpp"
|
||||
#include "database/IDb.hpp"
|
||||
#include "database/Session.hpp"
|
||||
#include "database/User.hpp"
|
||||
#include "services/auth/IAuthTokenService.hpp"
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
namespace lms::api::subsonic
|
||||
{
|
||||
std::unique_ptr<Wt::WResource> createSubsonicResource(db::Db& db)
|
||||
std::unique_ptr<Wt::WResource> createSubsonicResource(db::IDb& db)
|
||||
{
|
||||
return std::make_unique<SubsonicResource>(db);
|
||||
}
|
||||
@@ -295,7 +295,7 @@ namespace lms::api::subsonic
|
||||
}
|
||||
} // namespace
|
||||
|
||||
SubsonicResource::SubsonicResource(db::Db& db)
|
||||
SubsonicResource::SubsonicResource(db::IDb& db)
|
||||
: _serverProtocolVersionsByClient{ readConfigProtocolVersions() }
|
||||
, _openSubsonicDisabledClients{ readOpenSubsonicDisabledClients() }
|
||||
, _supportUserPasswordAuthentication{ core::Service<core::IConfig>::get()->getBool("api-subsonic-support-user-password-auth", true) }
|
||||
|
||||
Reference in New Issue
Block a user