]> WPIA git - cassiopeia.git/blobdiff - src/mysql.cpp
fmt: Reorganizing includes
[cassiopeia.git] / src / mysql.cpp
index 67fc49ecc65bae1122a196242c41a2380e194ac8..3c2cb960ca7563e6ad537cd7c4549ebb542167c9 100644 (file)
@@ -249,7 +249,7 @@ void MySQLJobProvider::writeBack( std::shared_ptr<Job> job, std::shared_ptr<Sign
         throw "Error while writing back";
     }
 
-    std::string q = "UPDATE certs SET crt_name='" + this->escape_string( res->crt_name ) + "', serial='" + this->escape_string( std::to_string( res->serial ) ) + "' WHERE id='" + this->escape_string( job->id ) + "' LIMIT 1";
+    std::string q = "UPDATE certs SET crt_name='" + this->escape_string( res->crt_name ) + "', serial='" + this->escape_string( std::to_string( res->serial ) ) + "', created=NOW() WHERE id='" + this->escape_string( job->id ) + "' LIMIT 1";
 
     // TODO write more thingies back