Commit a381d792 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

unitests: MediaLibraryTester: Fix setMediaInsertionDate helper

Incidently, this was working fine since the only invocation was passing
1 as both mediaID and time
parent 59ff289c
......@@ -203,7 +203,7 @@ bool MediaLibraryTester::setMediaInsertionDate( int64_t mediaId, time_t t )
{
std::string req = "UPDATE " + Media::Table::Name + " SET insertion_date = ? "
"WHERE id_media = ?";
return sqlite::Tools::executeUpdate( getConn(), req, mediaId, t );
return sqlite::Tools::executeUpdate( getConn(), req, t, mediaId );
}
bool MediaLibraryTester::outdateAllExternalMedia()
......
Supports Markdown
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