diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/domain/accountscontroller.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/domain/accountscontroller.cpp b/framework/domain/accountscontroller.cpp index b5e7e9ca..2f47fa03 100644 --- a/framework/domain/accountscontroller.cpp +++ b/framework/domain/accountscontroller.cpp | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <sink/store.h> | 24 | #include <sink/store.h> |
25 | 25 | ||
26 | #include <QVariant> | 26 | #include <QVariant> |
27 | #include <QUuid> | ||
28 | #include <QDebug> | 27 | #include <QDebug> |
29 | 28 | ||
30 | AccountsController::AccountsController(QObject *parent) : QObject(parent) | 29 | AccountsController::AccountsController(QObject *parent) : QObject(parent) |
@@ -33,9 +32,7 @@ AccountsController::AccountsController(QObject *parent) : QObject(parent) | |||
33 | 32 | ||
34 | void AccountsController::createAccount(const QString &accountType) | 33 | void AccountsController::createAccount(const QString &accountType) |
35 | { | 34 | { |
36 | const auto identifier = QUuid::createUuid().toByteArray(); | 35 | auto account = Sink::ApplicationDomain::ApplicationDomainType::createEntity<Sink::ApplicationDomain::SinkAccount>(); |
37 | Sink::ApplicationDomain::SinkAccount account; | ||
38 | account.setProperty("identifier", identifier); | ||
39 | account.setProperty("type", accountType); | 36 | account.setProperty("type", accountType); |
40 | Sink::Store::create(account).then<void>([]() {}, | 37 | Sink::Store::create(account).then<void>([]() {}, |
41 | [](int errorCode, const QString &errorMessage) { | 38 | [](int errorCode, const QString &errorMessage) { |