Commit ad6695fa authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

TAGAPPEND: wrap the Tag creation into a db transaction

parent decb4693
......@@ -24,6 +24,7 @@
#include "storage/datastore.h"
#include "storage/querybuilder.h"
#include "storage/countquerybuilder.h"
#include "storage/transaction.h"
#include <private/scope_p.h>
#include <private/imapset_p.h>
......@@ -39,6 +40,8 @@ bool TagAppend::parseStream()
return failureResponse("Only resources can create tags with remote ID");
}
Transaction trx(DataStore::self(), QStringLiteral("TAGAPPEND"));
TagType tagType;
if (!cmd.type().isEmpty()) {
const QString typeName = QString::fromUtf8(cmd.type());
......@@ -120,6 +123,8 @@ bool TagAppend::parseStream()
}
}
trx.commit();
// FIXME BIN
Scope scope;
ImapSet set;
......
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