summaryrefslogtreecommitdiff
path: root/server/src/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/database.h')
-rw-r--r--server/src/database.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/src/database.h b/server/src/database.h
index ca0458d..0bc37c0 100644
--- a/server/src/database.h
+++ b/server/src/database.h
@@ -43,17 +43,16 @@ public:
~Database();
// Make a commit to the db
- void commitTransaction(std::string user,
- std::string patientid,
+ void commitTransaction(Transaction &transaction,
+ Commit &commit,
Macro &macro,
- Fields &fields,
time_t now = time(NULL)) {
if(!dao) return;
mutex.lock();
DEBUG(db, "%s, %s, %s,...\n",
- user.c_str(), patientid.c_str(),
+ transaction.user.c_str(), transaction.cpr.c_str(),
macro.attributes["name"].c_str());
- dao->commitTransaction(user, patientid, macro, fields, now);
+ dao->commitTransaction(transaction, commit, macro, now);
mutex.unlock();
}