aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/Console.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/Console.scala b/app/controllers/Console.scala
index 5c576b5..b3e7804 100644
--- a/app/controllers/Console.scala
+++ b/app/controllers/Console.scala
@@ -35,10 +35,11 @@ object Console extends Controller {
35 val grant = commandData.command match { 35 val grant = commandData.command match {
36 case "kaching" => 1000 36 case "kaching" => 1000
37 case "motherlode" => 5000 37 case "motherlode" => 5000
38 case "clippy" => -400000
38 case _ => 0 39 case _ => 0
39 } 40 }
40 41
41 if (grant > 0) { 42 if (grant != 0) {
42 Tables.Transactions += Tables.Transaction( 43 Tables.Transactions += Tables.Transaction(
43 userUuid = request.account.get.userUuid.get, 44 userUuid = request.account.get.userUuid.get,
44 transactionDate = new java.sql.Timestamp(new java.util.Date().getTime), 45 transactionDate = new java.sql.Timestamp(new java.util.Date().getTime),