summaryrefslogtreecommitdiff
path: root/server/src/database.h
diff options
context:
space:
mode:
authordeva <deva>2011-01-14 10:23:38 +0000
committerdeva <deva>2011-01-14 10:23:38 +0000
commit7a8185affa101ba8239a310321a3524eb3e6f650 (patch)
tree48b56008f613e099738ed2a2ecfaa843c32ed36d /server/src/database.h
parent890c42ec53e4743a0bc737aa32b54049184a8cfe (diff)
Add 'template' to transactions table in db.
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();
}