Commit 629ded1e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

parser: Task: Fix refresh task creation

fix #65

(cherry picked from commit 21fa816f)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 09dbf434
Pipeline #4207 passed with stages
in 16 minutes and 48 seconds
...@@ -534,9 +534,9 @@ Task::createRefreshTask( MediaLibraryPtr ml, std::shared_ptr<File> file, ...@@ -534,9 +534,9 @@ Task::createRefreshTask( MediaLibraryPtr ml, std::shared_ptr<File> file,
{ {
auto self = std::make_shared<Task>( ml, std::move( file ), std::move( fileFs ) ); auto self = std::make_shared<Task>( ml, std::move( file ), std::move( fileFs ) );
const std::string req = "INSERT INTO " + Task::Table::Name + const std::string req = "INSERT INTO " + Task::Table::Name +
"(mrl, file_id, is_refresh) VALUES(?, ?, ?)"; "(mrl, file_type, file_id, is_refresh) VALUES(?, ?, ?, ?)";
if ( insert( ml, self, req, self->m_item.mrl(), self->m_item.file()->id(), if ( insert( ml, self, req, self->m_item.mrl(), self->m_item.file()->type(),
true ) == false ) self->m_item.file()->id(), true ) == false )
return nullptr; return nullptr;
return self; return self;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment