Commit dd16e6fa authored by jan.koester's avatar jan.koester
Browse files

fix

parent aa74d538
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ std::string webedit::Database::updateDocument(const std::string &ownerUid,
        << "', modified=CURRENT_TIMESTAMP WHERE id='"
        << dbpp::SQL::escaped(escapedId, id.c_str())
        << "' AND owner_uid='"
        << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';"
        << dbpp::SQL::escaped(escapedUid, ownerUid.c_str()) << "';";

    _db->exec(sql, res);

@@ -385,7 +385,7 @@ std::string webedit::Database::listDocuments(const std::string &domain) {

    sql << "SELECT id, name, created, modified, group_name FROM documents WHERE domain='"
        << dbpp::SQL::escaped(escapedDomain, domain.c_str())
        << "' ORDER BY group_name, name, modified DESC;"
        << "' ORDER BY group_name, name, modified DESC;";

    int rows = _db->exec(sql, res);